| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 NavigationHandle* navigation_handle, | 136 NavigationHandle* navigation_handle, |
| 137 std::unique_ptr<NavigationData> navigation_data) override; | 137 std::unique_ptr<NavigationData> navigation_data) override; |
| 138 | 138 |
| 139 protected: | 139 protected: |
| 140 // The deprecated WebContentsTester still needs to subclass this. | 140 // The deprecated WebContentsTester still needs to subclass this. |
| 141 explicit TestWebContents(BrowserContext* browser_context); | 141 explicit TestWebContents(BrowserContext* browser_context); |
| 142 | 142 |
| 143 private: | 143 private: |
| 144 // WebContentsImpl overrides | 144 // WebContentsImpl overrides |
| 145 void CreateNewWindow( | 145 void CreateNewWindow( |
| 146 SiteInstance* source_site_instance, | 146 RenderFrameHost* opener, |
| 147 int32_t route_id, | 147 int32_t route_id, |
| 148 int32_t main_frame_route_id, | 148 int32_t main_frame_route_id, |
| 149 int32_t main_frame_widget_route_id, | 149 int32_t main_frame_widget_route_id, |
| 150 const mojom::CreateNewWindowParams& params, | 150 const mojom::CreateNewWindowParams& params, |
| 151 SessionStorageNamespace* session_storage_namespace) override; | 151 SessionStorageNamespace* session_storage_namespace) override; |
| 152 void CreateNewWidget(int32_t render_process_id, | 152 void CreateNewWidget(int32_t render_process_id, |
| 153 int32_t route_id, | 153 int32_t route_id, |
| 154 blink::WebPopupType popup_type) override; | 154 blink::WebPopupType popup_type) override; |
| 155 void CreateNewFullscreenWidget(int32_t render_process_id, | 155 void CreateNewFullscreenWidget(int32_t render_process_id, |
| 156 int32_t route_id) override; | 156 int32_t route_id) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 175 int expect_set_history_offset_and_length_history_length_; | 175 int expect_set_history_offset_and_length_history_length_; |
| 176 std::string save_frame_headers_; | 176 std::string save_frame_headers_; |
| 177 // Map keyed by image URL. Values are <id, callback> pairs. | 177 // Map keyed by image URL. Values are <id, callback> pairs. |
| 178 std::map<GURL, std::list<std::pair<int, ImageDownloadCallback>>> | 178 std::map<GURL, std::list<std::pair<int, ImageDownloadCallback>>> |
| 179 pending_image_downloads_; | 179 pending_image_downloads_; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace content | 182 } // namespace content |
| 183 | 183 |
| 184 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 184 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |