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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 578883003: Remove the strict dependency on WebContents for Web Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through render_process_id Created 6 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
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 virtual blink::WebNotificationPermission 429 virtual blink::WebNotificationPermission
430 CheckDesktopNotificationPermission( 430 CheckDesktopNotificationPermission(
431 const GURL& source_url, 431 const GURL& source_url,
432 ResourceContext* context, 432 ResourceContext* context,
433 int render_process_id); 433 int render_process_id);
434 434
435 // Show a desktop notification. If |cancel_callback| is non-null, it's set to 435 // Show a desktop notification. If |cancel_callback| is non-null, it's set to
436 // a callback which can be used to cancel the notification. 436 // a callback which can be used to cancel the notification.
437 virtual void ShowDesktopNotification( 437 virtual void ShowDesktopNotification(
438 const ShowDesktopNotificationHostMsgParams& params, 438 const ShowDesktopNotificationHostMsgParams& params,
439 RenderFrameHost* render_frame_host, 439 BrowserContext* browser_context,
440 int render_process_id,
440 scoped_ptr<DesktopNotificationDelegate> delegate, 441 scoped_ptr<DesktopNotificationDelegate> delegate,
441 base::Closure* cancel_callback) {} 442 base::Closure* cancel_callback) {}
442 443
443 // The renderer is requesting permission to use Geolocation. When the answer 444 // The renderer is requesting permission to use Geolocation. When the answer
444 // to a permission request has been determined, |result_callback| should be 445 // to a permission request has been determined, |result_callback| should be
445 // called with the result. If |cancel_callback| is non-null, it's set to a 446 // called with the result. If |cancel_callback| is non-null, it's set to a
446 // callback which can be used to cancel the permission request. 447 // callback which can be used to cancel the permission request.
447 virtual void RequestGeolocationPermission( 448 virtual void RequestGeolocationPermission(
448 WebContents* web_contents, 449 WebContents* web_contents,
449 int bridge_id, 450 int bridge_id,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // camera. Note that this does not query the user. |type| must be 653 // camera. Note that this does not query the user. |type| must be
653 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 654 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
654 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, 655 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
655 const GURL& security_origin, 656 const GURL& security_origin,
656 MediaStreamType type); 657 MediaStreamType type);
657 }; 658 };
658 659
659 } // namespace content 660 } // namespace content
660 661
661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698