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

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: Created 6 years, 3 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 #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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 virtual blink::WebNotificationPermission 424 virtual blink::WebNotificationPermission
425 CheckDesktopNotificationPermission( 425 CheckDesktopNotificationPermission(
426 const GURL& source_url, 426 const GURL& source_url,
427 ResourceContext* context, 427 ResourceContext* context,
428 int render_process_id); 428 int render_process_id);
429 429
430 // Show a desktop notification. If |cancel_callback| is non-null, it's set to 430 // Show a desktop notification. If |cancel_callback| is non-null, it's set to
431 // a callback which can be used to cancel the notification. 431 // a callback which can be used to cancel the notification.
432 virtual void ShowDesktopNotification( 432 virtual void ShowDesktopNotification(
433 const ShowDesktopNotificationHostMsgParams& params, 433 const ShowDesktopNotificationHostMsgParams& params,
434 RenderFrameHost* render_frame_host, 434 content::BrowserContext* browser_context,
435 scoped_ptr<DesktopNotificationDelegate> delegate, 435 scoped_ptr<DesktopNotificationDelegate> delegate,
436 base::Closure* cancel_callback) {} 436 base::Closure* cancel_callback) {}
437 437
438 // The renderer is requesting permission to use Geolocation. When the answer 438 // The renderer is requesting permission to use Geolocation. When the answer
439 // to a permission request has been determined, |result_callback| should be 439 // to a permission request has been determined, |result_callback| should be
440 // called with the result. If |cancel_callback| is non-null, it's set to a 440 // called with the result. If |cancel_callback| is non-null, it's set to a
441 // callback which can be used to cancel the permission request. 441 // callback which can be used to cancel the permission request.
442 virtual void RequestGeolocationPermission( 442 virtual void RequestGeolocationPermission(
443 WebContents* web_contents, 443 WebContents* web_contents,
444 int bridge_id, 444 int bridge_id,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // camera. Note that this does not query the user. |type| must be 643 // camera. Note that this does not query the user. |type| must be
644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, 645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
646 const GURL& security_origin, 646 const GURL& security_origin,
647 MediaStreamType type); 647 MediaStreamType type);
648 }; 648 };
649 649
650 } // namespace content 650 } // namespace content
651 651
652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698