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

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

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/aw_contents_client_bridge_base.h" 9 #include "android_webview/browser/aw_contents_client_bridge_base.h"
10 #include "android_webview/browser/aw_cookie_access_policy.h" 10 #include "android_webview/browser/aw_cookie_access_policy.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 int render_view_id, 271 int render_view_id,
272 const net::HttpNetworkSession* network_session, 272 const net::HttpNetworkSession* network_session,
273 net::SSLCertRequestInfo* cert_request_info, 273 net::SSLCertRequestInfo* cert_request_info,
274 const base::Callback<void(net::X509Certificate*)>& callback) { 274 const base::Callback<void(net::X509Certificate*)>& callback) {
275 LOG(INFO) << "Client certificate request from " 275 LOG(INFO) << "Client certificate request from "
276 << cert_request_info->host_and_port 276 << cert_request_info->host_and_port
277 << " rejected. (Client certificates not supported in WebView)"; 277 << " rejected. (Client certificates not supported in WebView)";
278 callback.Run(NULL); 278 callback.Run(NULL);
279 } 279 }
280 280
281 WebKit::WebNotificationPresenter::Permission 281 blink::WebNotificationPresenter::Permission
282 AwContentBrowserClient::CheckDesktopNotificationPermission( 282 AwContentBrowserClient::CheckDesktopNotificationPermission(
283 const GURL& source_url, 283 const GURL& source_url,
284 content::ResourceContext* context, 284 content::ResourceContext* context,
285 int render_process_id) { 285 int render_process_id) {
286 // Android WebView does not support notifications, so return Denied here. 286 // Android WebView does not support notifications, so return Denied here.
287 return WebKit::WebNotificationPresenter::PermissionDenied; 287 return blink::WebNotificationPresenter::PermissionDenied;
288 } 288 }
289 289
290 void AwContentBrowserClient::ShowDesktopNotification( 290 void AwContentBrowserClient::ShowDesktopNotification(
291 const content::ShowDesktopNotificationHostMsgParams& params, 291 const content::ShowDesktopNotificationHostMsgParams& params,
292 int render_process_id, 292 int render_process_id,
293 int render_view_id, 293 int render_view_id,
294 bool worker) { 294 bool worker) {
295 NOTREACHED() << "Android WebView does not support desktop notifications."; 295 NOTREACHED() << "Android WebView does not support desktop notifications.";
296 } 296 }
297 297
298 void AwContentBrowserClient::CancelDesktopNotification( 298 void AwContentBrowserClient::CancelDesktopNotification(
299 int render_process_id, 299 int render_process_id,
300 int render_view_id, 300 int render_view_id,
301 int notification_id) { 301 int notification_id) {
302 NOTREACHED() << "Android WebView does not support desktop notifications."; 302 NOTREACHED() << "Android WebView does not support desktop notifications.";
303 } 303 }
304 304
305 bool AwContentBrowserClient::CanCreateWindow( 305 bool AwContentBrowserClient::CanCreateWindow(
306 const GURL& opener_url, 306 const GURL& opener_url,
307 const GURL& opener_top_level_frame_url, 307 const GURL& opener_top_level_frame_url,
308 const GURL& source_origin, 308 const GURL& source_origin,
309 WindowContainerType container_type, 309 WindowContainerType container_type,
310 const GURL& target_url, 310 const GURL& target_url,
311 const content::Referrer& referrer, 311 const content::Referrer& referrer,
312 WindowOpenDisposition disposition, 312 WindowOpenDisposition disposition,
313 const WebKit::WebWindowFeatures& features, 313 const blink::WebWindowFeatures& features,
314 bool user_gesture, 314 bool user_gesture,
315 bool opener_suppressed, 315 bool opener_suppressed,
316 content::ResourceContext* context, 316 content::ResourceContext* context,
317 int render_process_id, 317 int render_process_id,
318 bool is_guest, 318 bool is_guest,
319 int opener_id, 319 int opener_id,
320 bool* no_javascript_access) { 320 bool* no_javascript_access) {
321 // We unconditionally allow popup windows at this stage and will give 321 // We unconditionally allow popup windows at this stage and will give
322 // the embedder the opporunity to handle displaying of the popup in 322 // the embedder the opporunity to handle displaying of the popup in
323 // WebContentsDelegate::AddContents (via the 323 // WebContentsDelegate::AddContents (via the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 WebPreferences* web_prefs) { 408 WebPreferences* web_prefs) {
409 if (!preferences_populater_.get()) { 409 if (!preferences_populater_.get()) {
410 preferences_populater_ = make_scoped_ptr(native_factory_-> 410 preferences_populater_ = make_scoped_ptr(native_factory_->
411 CreateWebPreferencesPopulater()); 411 CreateWebPreferencesPopulater());
412 } 412 }
413 preferences_populater_->PopulateFor( 413 preferences_populater_->PopulateFor(
414 content::WebContents::FromRenderViewHost(rvh), web_prefs); 414 content::WebContents::FromRenderViewHost(rvh), web_prefs);
415 } 415 }
416 416
417 } // namespace android_webview 417 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | android_webview/browser/find_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698