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

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: associated with IPC channel 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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 const GURL& opener_top_level_frame_url, 410 const GURL& opener_top_level_frame_url,
411 const GURL& source_origin, 411 const GURL& source_origin,
412 content::mojom::WindowContainerType container_type, 412 content::mojom::WindowContainerType container_type,
413 const GURL& target_url, 413 const GURL& target_url,
414 const content::Referrer& referrer, 414 const content::Referrer& referrer,
415 const std::string& frame_name, 415 const std::string& frame_name,
416 WindowOpenDisposition disposition, 416 WindowOpenDisposition disposition,
417 const blink::mojom::WindowFeatures& features, 417 const blink::mojom::WindowFeatures& features,
418 bool user_gesture, 418 bool user_gesture,
419 bool opener_suppressed, 419 bool opener_suppressed,
420 content::ResourceContext* context,
421 bool* no_javascript_access) { 420 bool* no_javascript_access) {
422 // We unconditionally allow popup windows at this stage and will give 421 // We unconditionally allow popup windows at this stage and will give
423 // the embedder the opporunity to handle displaying of the popup in 422 // the embedder the opporunity to handle displaying of the popup in
424 // WebContentsDelegate::AddContents (via the 423 // WebContentsDelegate::AddContents (via the
425 // AwContentsClient.onCreateWindow callback). 424 // AwContentsClient.onCreateWindow callback).
426 // Note that if the embedder has blocked support for creating popup 425 // Note that if the embedder has blocked support for creating popup
427 // windows through AwSettings, then we won't get to this point as 426 // windows through AwSettings, then we won't get to this point as
428 // the popup creation will have been blocked at the WebKit level. 427 // the popup creation will have been blocked at the WebKit level.
429 if (no_javascript_access) { 428 if (no_javascript_access) {
430 *no_javascript_access = false; 429 *no_javascript_access = false;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 render_frame_host)); 560 render_frame_host));
562 561
563 // Although WebView does not support password manager feature, renderer code 562 // Although WebView does not support password manager feature, renderer code
564 // could still request this interface, so we register a dummy binder which 563 // could still request this interface, so we register a dummy binder which
565 // just drops the incoming request, to avoid the 'Failed to locate a binder 564 // just drops the incoming request, to avoid the 'Failed to locate a binder
566 // for interface' error log.. 565 // for interface' error log..
567 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); 566 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver));
568 } 567 }
569 568
570 } // namespace android_webview 569 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698