OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const GURL& url) override; | 71 const GURL& url) override; |
72 void SendNavigateWithTransition(int nav_entry_id, | 72 void SendNavigateWithTransition(int nav_entry_id, |
73 bool did_create_new_entry, | 73 bool did_create_new_entry, |
74 const GURL& url, | 74 const GURL& url, |
75 ui::PageTransition transition) override; | 75 ui::PageTransition transition) override; |
76 void SetContentsMimeType(const std::string& mime_type) override; | 76 void SetContentsMimeType(const std::string& mime_type) override; |
77 void SendBeforeUnloadACK(bool proceed) override; | 77 void SendBeforeUnloadACK(bool proceed) override; |
78 void SimulateSwapOutACK() override; | 78 void SimulateSwapOutACK() override; |
79 void NavigateAndCommitRendererInitiated(bool did_create_new_entry, | 79 void NavigateAndCommitRendererInitiated(bool did_create_new_entry, |
80 const GURL& url) override; | 80 const GURL& url) override; |
| 81 void SimulateFeaturePolicyHeader( |
| 82 blink::WebFeaturePolicyFeature feature, |
| 83 const std::vector<url::Origin>& whitelist) override; |
81 | 84 |
82 void SendNavigateWithReplacement(int nav_entry_id, | 85 void SendNavigateWithReplacement(int nav_entry_id, |
83 bool did_create_new_entry, | 86 bool did_create_new_entry, |
84 const GURL& url); | 87 const GURL& url); |
85 | 88 |
86 using ModificationCallback = | 89 using ModificationCallback = |
87 base::Callback<void(FrameHostMsg_DidCommitProvisionalLoad_Params*)>; | 90 base::Callback<void(FrameHostMsg_DidCommitProvisionalLoad_Params*)>; |
88 | 91 |
89 void SendNavigateWithModificationCallback( | 92 void SendNavigateWithModificationCallback( |
90 int nav_entry_id, | 93 int nav_entry_id, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 164 |
162 // The last commit was for an error page. | 165 // The last commit was for an error page. |
163 bool last_commit_was_error_page_; | 166 bool last_commit_was_error_page_; |
164 | 167 |
165 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 168 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
166 }; | 169 }; |
167 | 170 |
168 } // namespace content | 171 } // namespace content |
169 | 172 |
170 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 173 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
OLD | NEW |