| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const base::string16& error_description, | 109 const base::string16& error_description, |
| 110 bool was_ignored_by_handler); | 110 bool was_ignored_by_handler); |
| 111 | 111 |
| 112 protected: | 112 protected: |
| 113 // The deprecated WebContentsTester still needs to subclass this. | 113 // The deprecated WebContentsTester still needs to subclass this. |
| 114 explicit TestWebContents(BrowserContext* browser_context); | 114 explicit TestWebContents(BrowserContext* browser_context); |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // WebContentsImpl overrides | 117 // WebContentsImpl overrides |
| 118 void CreateNewWindow( | 118 void CreateNewWindow( |
| 119 int render_process_id, | 119 SiteInstance* source_site_instance, |
| 120 int route_id, | 120 int route_id, |
| 121 int main_frame_route_id, | 121 int main_frame_route_id, |
| 122 const ViewHostMsg_CreateWindow_Params& params, | 122 const ViewHostMsg_CreateWindow_Params& params, |
| 123 SessionStorageNamespace* session_storage_namespace) override; | 123 SessionStorageNamespace* session_storage_namespace) override; |
| 124 void CreateNewWidget(int render_process_id, | 124 void CreateNewWidget(int render_process_id, |
| 125 int route_id, | 125 int route_id, |
| 126 blink::WebPopupType popup_type) override; | 126 blink::WebPopupType popup_type) override; |
| 127 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; | 127 void CreateNewFullscreenWidget(int render_process_id, int route_id) override; |
| 128 void ShowCreatedWindow(int route_id, | 128 void ShowCreatedWindow(int route_id, |
| 129 WindowOpenDisposition disposition, | 129 WindowOpenDisposition disposition, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 140 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 140 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
| 141 bool expect_set_history_offset_and_length_; | 141 bool expect_set_history_offset_and_length_; |
| 142 int expect_set_history_offset_and_length_history_offset_; | 142 int expect_set_history_offset_and_length_history_offset_; |
| 143 int expect_set_history_offset_and_length_history_length_; | 143 int expect_set_history_offset_and_length_history_length_; |
| 144 std::string save_frame_headers_; | 144 std::string save_frame_headers_; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 } // namespace content | 147 } // namespace content |
| 148 | 148 |
| 149 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 149 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |