Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Side by Side Diff: content/test/test_web_contents.cc

Issue 92873004: Prevent the browser process from creating duplicate RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/frame_host/navigation_entry_impl.h" 10 #include "content/browser/frame_host/navigation_entry_impl.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 const GURL& url, 212 const GURL& url,
213 bool is_main_frame, 213 bool is_main_frame,
214 int error_code, 214 int error_code,
215 const string16& error_description) { 215 const string16& error_description) {
216 ViewHostMsg_DidFailLoadWithError msg( 216 ViewHostMsg_DidFailLoadWithError msg(
217 0, frame_id, url, is_main_frame, error_code, error_description); 217 0, frame_id, url, is_main_frame, error_code, error_description);
218 OnMessageReceived(GetRenderViewHost(), msg); 218 OnMessageReceived(GetRenderViewHost(), msg);
219 } 219 }
220 220
221 void TestWebContents::CreateNewWindow( 221 void TestWebContents::CreateNewWindow(
222 int render_process_id,
222 int route_id, 223 int route_id,
223 int main_frame_route_id, 224 int main_frame_route_id,
224 const ViewHostMsg_CreateWindow_Params& params, 225 const ViewHostMsg_CreateWindow_Params& params,
225 SessionStorageNamespace* session_storage_namespace) { 226 SessionStorageNamespace* session_storage_namespace) {
226 } 227 }
227 228
228 void TestWebContents::CreateNewWidget(int route_id, 229 void TestWebContents::CreateNewWidget(int route_id,
229 blink::WebPopupType popup_type) { 230 blink::WebPopupType popup_type) {
230 } 231 }
231 232
232 void TestWebContents::CreateNewFullscreenWidget(int route_id) { 233 void TestWebContents::CreateNewFullscreenWidget(int route_id) {
233 } 234 }
234 235
235 void TestWebContents::ShowCreatedWindow(int route_id, 236 void TestWebContents::ShowCreatedWindow(int route_id,
236 WindowOpenDisposition disposition, 237 WindowOpenDisposition disposition,
237 const gfx::Rect& initial_pos, 238 const gfx::Rect& initial_pos,
238 bool user_gesture) { 239 bool user_gesture) {
239 } 240 }
240 241
241 void TestWebContents::ShowCreatedWidget(int route_id, 242 void TestWebContents::ShowCreatedWidget(int route_id,
242 const gfx::Rect& initial_pos) { 243 const gfx::Rect& initial_pos) {
243 } 244 }
244 245
245 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 246 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
246 } 247 }
247 248
248 } // namespace content 249 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698