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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness Created 3 years, 8 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 "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/frame_host/cross_process_frame_connector.h" 10 #include "content/browser/frame_host/cross_process_frame_connector.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 365
366 void TestWebContents::SetNavigationData( 366 void TestWebContents::SetNavigationData(
367 NavigationHandle* navigation_handle, 367 NavigationHandle* navigation_handle,
368 std::unique_ptr<NavigationData> navigation_data) { 368 std::unique_ptr<NavigationData> navigation_data) {
369 static_cast<NavigationHandleImpl*>(navigation_handle) 369 static_cast<NavigationHandleImpl*>(navigation_handle)
370 ->set_navigation_data(std::move(navigation_data)); 370 ->set_navigation_data(std::move(navigation_data));
371 } 371 }
372 372
373 void TestWebContents::CreateNewWindow( 373 void TestWebContents::CreateNewWindow(
374 SiteInstance* source_site_instance, 374 RenderFrameHost* opener,
375 int32_t route_id, 375 int32_t route_id,
376 int32_t main_frame_route_id, 376 int32_t main_frame_route_id,
377 int32_t main_frame_widget_route_id, 377 int32_t main_frame_widget_route_id,
378 const mojom::CreateNewWindowParams& params, 378 const mojom::CreateNewWindowParams& params,
379 SessionStorageNamespace* session_storage_namespace) {} 379 SessionStorageNamespace* session_storage_namespace) {}
380 380
381 void TestWebContents::CreateNewWidget(int32_t render_process_id, 381 void TestWebContents::CreateNewWidget(int32_t render_process_id,
382 int32_t route_id, 382 int32_t route_id,
383 blink::WebPopupType popup_type) {} 383 blink::WebPopupType popup_type) {}
384 384
(...skipping 16 matching lines...) Expand all
401 int route_id) { 401 int route_id) {
402 } 402 }
403 403
404 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 404 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
405 const Referrer& referrer, 405 const Referrer& referrer,
406 const std::string& headers) { 406 const std::string& headers) {
407 save_frame_headers_ = headers; 407 save_frame_headers_ = headers;
408 } 408 }
409 409
410 } // namespace content 410 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698