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

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

Issue 11362183: [Android WebView] AwContentsClient.shouldCreateWindow callback part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a wonky indent and add a TODO for mkosiba's comment. Created 8 years, 1 month 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 | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h » ('j') | 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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_main_parts.h" 7 #include "android_webview/browser/aw_browser_main_parts.h"
8 #include "android_webview/browser/aw_cookie_access_policy.h" 8 #include "android_webview/browser/aw_cookie_access_policy.h"
9 #include "android_webview/browser/aw_quota_permission_context.h" 9 #include "android_webview/browser/aw_quota_permission_context.h"
10 #include "android_webview/browser/net_disk_cache_remover.h" 10 #include "android_webview/browser/net_disk_cache_remover.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 NOTREACHED() << "Android WebView does not support desktop notifications."; 230 NOTREACHED() << "Android WebView does not support desktop notifications.";
231 } 231 }
232 232
233 bool AwContentBrowserClient::CanCreateWindow( 233 bool AwContentBrowserClient::CanCreateWindow(
234 const GURL& opener_url, 234 const GURL& opener_url,
235 const GURL& source_origin, 235 const GURL& source_origin,
236 WindowContainerType container_type, 236 WindowContainerType container_type,
237 content::ResourceContext* context, 237 content::ResourceContext* context,
238 int render_process_id, 238 int render_process_id,
239 bool* no_javascript_access) { 239 bool* no_javascript_access) {
240 // TODO(boliu): Implement this to power SupportMultipleWindow. 240 // We unconditionally allow popup windows at this stage and will give
241 NOTIMPLEMENTED(); 241 // the embedder the opporunity to handle displaying of the popup in
242 *no_javascript_access = false; 242 // WebContentsDelegate::AddContents (via the
243 return false; 243 // AwContentsClient.onCreateWindow callback).
joth 2012/11/14 18:40:03 (maybe comment that WebKit already handles the Web
244 if (no_javascript_access) {
245 *no_javascript_access = false;
246 }
247 return true;
244 } 248 }
245 249
246 std::string AwContentBrowserClient::GetWorkerProcessTitle(const GURL& url, 250 std::string AwContentBrowserClient::GetWorkerProcessTitle(const GURL& url,
247 content::ResourceContext* context) { 251 content::ResourceContext* context) {
248 NOTREACHED() << "Android WebView does not yet support web workers."; 252 NOTREACHED() << "Android WebView does not yet support web workers.";
249 return std::string(); 253 return std::string();
250 } 254 }
251 255
252 256
253 void AwContentBrowserClient::ResourceDispatcherHostCreated() { 257 void AwContentBrowserClient::ResourceDispatcherHostCreated() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 315
312 bool AwContentBrowserClient::AllowPepperSocketAPI( 316 bool AwContentBrowserClient::AllowPepperSocketAPI(
313 content::BrowserContext* browser_context, 317 content::BrowserContext* browser_context,
314 const GURL& url, 318 const GURL& url,
315 const content::SocketPermissionRequest& params) { 319 const content::SocketPermissionRequest& params) {
316 NOTREACHED() << "Android WebView does not support plugins"; 320 NOTREACHED() << "Android WebView does not support plugins";
317 return false; 321 return false;
318 } 322 }
319 323
320 } // namespace android_webview 324 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698