OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool did_create_new_entry, | 54 bool did_create_new_entry, |
55 const GURL& url, | 55 const GURL& url, |
56 const Referrer& referrer, | 56 const Referrer& referrer, |
57 ui::PageTransition transition) override; | 57 ui::PageTransition transition) override; |
58 const std::string& GetSaveFrameHeaders() override; | 58 const std::string& GetSaveFrameHeaders() override; |
59 | 59 |
60 // True if a cross-site navigation is pending. | 60 // True if a cross-site navigation is pending. |
61 bool CrossProcessNavigationPending(); | 61 bool CrossProcessNavigationPending(); |
62 | 62 |
63 // Prevent interaction with views. | 63 // Prevent interaction with views. |
64 bool CreateRenderViewForRenderManager(RenderViewHost* render_view_host, | 64 bool CreateRenderViewForRenderManager( |
65 int opener_route_id, | 65 RenderViewHost* render_view_host, |
66 int proxy_routing_id, | 66 int opener_route_id, |
67 bool for_main_frame) override; | 67 int proxy_routing_id, |
| 68 const FrameReplicationState& replicated_frame_state, |
| 69 bool for_main_frame) override; |
68 void UpdateRenderViewSizeForRenderManager() override {} | 70 void UpdateRenderViewSizeForRenderManager() override {} |
69 | 71 |
70 // Returns a clone of this TestWebContents. The returned object is also a | 72 // Returns a clone of this TestWebContents. The returned object is also a |
71 // TestWebContents. The caller owns the returned object. | 73 // TestWebContents. The caller owns the returned object. |
72 WebContents* Clone() override; | 74 WebContents* Clone() override; |
73 | 75 |
74 // Allow mocking of the RenderViewHostDelegateView. | 76 // Allow mocking of the RenderViewHostDelegateView. |
75 RenderViewHostDelegateView* GetDelegateView() override; | 77 RenderViewHostDelegateView* GetDelegateView() override; |
76 void set_delegate_view(RenderViewHostDelegateView* view) { | 78 void set_delegate_view(RenderViewHostDelegateView* view) { |
77 delegate_view_override_ = view; | 79 delegate_view_override_ = view; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 132 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
131 bool expect_set_history_offset_and_length_; | 133 bool expect_set_history_offset_and_length_; |
132 int expect_set_history_offset_and_length_history_offset_; | 134 int expect_set_history_offset_and_length_history_offset_; |
133 int expect_set_history_offset_and_length_history_length_; | 135 int expect_set_history_offset_and_length_history_length_; |
134 std::string save_frame_headers_; | 136 std::string save_frame_headers_; |
135 }; | 137 }; |
136 | 138 |
137 } // namespace content | 139 } // namespace content |
138 | 140 |
139 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 141 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
OLD | NEW |