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 "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
9 #include "content/public/test/web_contents_tester.h" | 9 #include "content/public/test/web_contents_tester.h" |
10 #include "content/test/test_render_frame_host.h" | 10 #include "content/test/test_render_frame_host.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool did_create_new_entry, | 44 bool did_create_new_entry, |
45 const GURL& url, | 45 const GURL& url, |
46 ui::PageTransition transition) override; | 46 ui::PageTransition transition) override; |
47 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, | 47 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, |
48 int page_id, | 48 int page_id, |
49 int nav_entry_id, | 49 int nav_entry_id, |
50 bool did_create_new_entry, | 50 bool did_create_new_entry, |
51 const GURL& url, | 51 const GURL& url, |
52 const Referrer& referrer, | 52 const Referrer& referrer, |
53 ui::PageTransition transition) override; | 53 ui::PageTransition transition) override; |
| 54 const std::string& GetSaveFrameHeaders() override; |
54 | 55 |
55 // True if a cross-site navigation is pending. | 56 // True if a cross-site navigation is pending. |
56 bool CrossProcessNavigationPending(); | 57 bool CrossProcessNavigationPending(); |
57 | 58 |
58 // Prevent interaction with views. | 59 // Prevent interaction with views. |
59 bool CreateRenderViewForRenderManager(RenderViewHost* render_view_host, | 60 bool CreateRenderViewForRenderManager(RenderViewHost* render_view_host, |
60 int opener_route_id, | 61 int opener_route_id, |
61 int proxy_routing_id, | 62 int proxy_routing_id, |
62 bool for_main_frame) override; | 63 bool for_main_frame) override; |
63 void UpdateRenderViewSizeForRenderManager() override {} | 64 void UpdateRenderViewSizeForRenderManager() override {} |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void CreateNewWidget(int render_process_id, | 110 void CreateNewWidget(int render_process_id, |
110 int route_id, | 111 int route_id, |
111 blink::WebPopupType popup_type) override; | 112 blink::WebPopupType popup_type) override; |
112 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; | 113 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; |
113 void ShowCreatedWindow(int route_id, | 114 void ShowCreatedWindow(int route_id, |
114 WindowOpenDisposition disposition, | 115 WindowOpenDisposition disposition, |
115 const gfx::Rect& initial_rect, | 116 const gfx::Rect& initial_rect, |
116 bool user_gesture) override; | 117 bool user_gesture) override; |
117 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; | 118 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; |
118 void ShowCreatedFullscreenWidget(int route_id) override; | 119 void ShowCreatedFullscreenWidget(int route_id) override; |
| 120 void SaveFrameWithHeaders(const GURL& url, |
| 121 const Referrer& referrer, |
| 122 const std::string& headers) override; |
119 | 123 |
120 RenderViewHostDelegateView* delegate_view_override_; | 124 RenderViewHostDelegateView* delegate_view_override_; |
121 | 125 |
122 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 126 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
123 bool expect_set_history_offset_and_length_; | 127 bool expect_set_history_offset_and_length_; |
124 int expect_set_history_offset_and_length_history_offset_; | 128 int expect_set_history_offset_and_length_history_offset_; |
125 int expect_set_history_offset_and_length_history_length_; | 129 int expect_set_history_offset_and_length_history_length_; |
| 130 std::string save_frame_headers_; |
126 }; | 131 }; |
127 | 132 |
128 } // namespace content | 133 } // namespace content |
129 | 134 |
130 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 135 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
OLD | NEW |