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

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

Issue 1224363002: OOPIF: Fix window.open to work from frames with remote parent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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
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 "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/browser/browser_url_handler_impl.h" 10 #include "content/browser/browser_url_handler_impl.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 const GURL& url, 274 const GURL& url,
275 int error_code, 275 int error_code,
276 const base::string16& error_description, 276 const base::string16& error_description,
277 bool was_ignored_by_handler) { 277 bool was_ignored_by_handler) {
278 FrameHostMsg_DidFailLoadWithError msg( 278 FrameHostMsg_DidFailLoadWithError msg(
279 0, url, error_code, error_description, was_ignored_by_handler); 279 0, url, error_code, error_description, was_ignored_by_handler);
280 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); 280 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg);
281 } 281 }
282 282
283 void TestWebContents::CreateNewWindow( 283 void TestWebContents::CreateNewWindow(
284 int render_process_id, 284 SiteInstance* source_site_instance,
285 int route_id, 285 int route_id,
286 int main_frame_route_id, 286 int main_frame_route_id,
287 const ViewHostMsg_CreateWindow_Params& params, 287 const ViewHostMsg_CreateWindow_Params& params,
288 SessionStorageNamespace* session_storage_namespace) { 288 SessionStorageNamespace* session_storage_namespace) {
289 } 289 }
290 290
291 void TestWebContents::CreateNewWidget(int render_process_id, 291 void TestWebContents::CreateNewWidget(int render_process_id,
292 int route_id, 292 int route_id,
293 blink::WebPopupType popup_type) { 293 blink::WebPopupType popup_type) {
294 } 294 }
(...skipping 15 matching lines...) Expand all
310 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 310 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
311 } 311 }
312 312
313 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 313 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
314 const Referrer& referrer, 314 const Referrer& referrer,
315 const std::string& headers) { 315 const std::string& headers) {
316 save_frame_headers_ = headers; 316 save_frame_headers_ = headers;
317 } 317 }
318 318
319 } // namespace content 319 } // namespace content
OLDNEW
« content/browser/web_contents/web_contents_impl.cc ('K') | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698