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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool was_ignored_by_handler); | 111 bool was_ignored_by_handler); |
112 | 112 |
113 protected: | 113 protected: |
114 // The deprecated WebContentsTester still needs to subclass this. | 114 // The deprecated WebContentsTester still needs to subclass this. |
115 explicit TestWebContents(BrowserContext* browser_context); | 115 explicit TestWebContents(BrowserContext* browser_context); |
116 | 116 |
117 private: | 117 private: |
118 // WebContentsImpl overrides | 118 // WebContentsImpl overrides |
119 void CreateNewWindow( | 119 void CreateNewWindow( |
120 SiteInstance* source_site_instance, | 120 SiteInstance* source_site_instance, |
121 int route_id, | 121 int32 route_id, |
122 int main_frame_route_id, | 122 int32 main_frame_route_id, |
| 123 int32 main_frame_widget_route_id, |
123 const ViewHostMsg_CreateWindow_Params& params, | 124 const ViewHostMsg_CreateWindow_Params& params, |
124 SessionStorageNamespace* session_storage_namespace) override; | 125 SessionStorageNamespace* session_storage_namespace) override; |
125 void CreateNewWidget(int render_process_id, | 126 void CreateNewWidget(int render_process_id, |
126 int route_id, | 127 int route_id, |
127 blink::WebPopupType popup_type) override; | 128 blink::WebPopupType popup_type) override; |
128 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; | 129 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; |
129 void ShowCreatedWindow(int route_id, | 130 void ShowCreatedWindow(int route_id, |
130 WindowOpenDisposition disposition, | 131 WindowOpenDisposition disposition, |
131 const gfx::Rect& initial_rect, | 132 const gfx::Rect& initial_rect, |
132 bool user_gesture) override; | 133 bool user_gesture) override; |
133 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; | 134 void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override; |
134 void ShowCreatedFullscreenWidget(int route_id) override; | 135 void ShowCreatedFullscreenWidget(int route_id) override; |
135 void SaveFrameWithHeaders(const GURL& url, | 136 void SaveFrameWithHeaders(const GURL& url, |
136 const Referrer& referrer, | 137 const Referrer& referrer, |
137 const std::string& headers) override; | 138 const std::string& headers) override; |
138 | 139 |
139 RenderViewHostDelegateView* delegate_view_override_; | 140 RenderViewHostDelegateView* delegate_view_override_; |
140 | 141 |
141 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 142 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
142 bool expect_set_history_offset_and_length_; | 143 bool expect_set_history_offset_and_length_; |
143 int expect_set_history_offset_and_length_history_offset_; | 144 int expect_set_history_offset_and_length_history_offset_; |
144 int expect_set_history_offset_and_length_history_length_; | 145 int expect_set_history_offset_and_length_history_length_; |
145 std::string save_frame_headers_; | 146 std::string save_frame_headers_; |
146 }; | 147 }; |
147 | 148 |
148 } // namespace content | 149 } // namespace content |
149 | 150 |
150 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 151 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
OLD | NEW |