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

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: Remove internal:: from ToRenderFrameHost 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
« 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 "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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 const GURL& url, 271 const GURL& url,
272 int error_code, 272 int error_code,
273 const base::string16& error_description, 273 const base::string16& error_description,
274 bool was_ignored_by_handler) { 274 bool was_ignored_by_handler) {
275 FrameHostMsg_DidFailLoadWithError msg( 275 FrameHostMsg_DidFailLoadWithError msg(
276 0, url, error_code, error_description, was_ignored_by_handler); 276 0, url, error_code, error_description, was_ignored_by_handler);
277 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); 277 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg);
278 } 278 }
279 279
280 void TestWebContents::CreateNewWindow( 280 void TestWebContents::CreateNewWindow(
281 int render_process_id, 281 SiteInstance* source_site_instance,
282 int route_id, 282 int route_id,
283 int main_frame_route_id, 283 int main_frame_route_id,
284 const ViewHostMsg_CreateWindow_Params& params, 284 const ViewHostMsg_CreateWindow_Params& params,
285 SessionStorageNamespace* session_storage_namespace) { 285 SessionStorageNamespace* session_storage_namespace) {
286 } 286 }
287 287
288 void TestWebContents::CreateNewWidget(int render_process_id, 288 void TestWebContents::CreateNewWidget(int render_process_id,
289 int route_id, 289 int route_id,
290 blink::WebPopupType popup_type) { 290 blink::WebPopupType popup_type) {
291 } 291 }
(...skipping 15 matching lines...) Expand all
307 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 307 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
308 } 308 }
309 309
310 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 310 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
311 const Referrer& referrer, 311 const Referrer& referrer,
312 const std::string& headers) { 312 const std::string& headers) {
313 save_frame_headers_ = headers; 313 save_frame_headers_ = headers;
314 } 314 }
315 315
316 } // namespace content 316 } // 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