| Index: content/public/browser/content_browser_client.h | 
| diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h | 
| index ac87e075ccc86f8dd5c521955eaeed1071a13852..71941390ced58e62b3f98f10bf7b0d0df7a9cd99 100644 | 
| --- a/content/public/browser/content_browser_client.h | 
| +++ b/content/public/browser/content_browser_client.h | 
| @@ -17,6 +17,7 @@ | 
| #include "base/values.h" | 
| #include "content/public/browser/certificate_request_result_type.h" | 
| #include "content/public/browser/desktop_notification_delegate.h" | 
| +#include "content/public/browser/permission_type.h" | 
| #include "content/public/common/content_client.h" | 
| #include "content/public/common/media_stream_request.h" | 
| #include "content/public/common/resource_type.h" | 
| @@ -417,13 +418,6 @@ class CONTENT_EXPORT ContentBrowserClient { | 
| // return NULL if they're not interested. | 
| virtual MediaObserver* GetMediaObserver(); | 
|  | 
| -  // Asks permission to show desktop notifications. |callback| needs to be run | 
| -  // when the user approves the request. | 
| -  virtual void RequestDesktopNotificationPermission( | 
| -      const GURL& source_origin, | 
| -      RenderFrameHost* render_frame_host, | 
| -      const base::Callback<void(blink::WebNotificationPermission)>& callback) {} | 
| - | 
| // Checks if the given page has permission to show desktop notifications. | 
| // This is called on the IO thread. | 
| virtual blink::WebNotificationPermission | 
| @@ -440,47 +434,23 @@ class CONTENT_EXPORT ContentBrowserClient { | 
| scoped_ptr<DesktopNotificationDelegate> delegate, | 
| base::Closure* cancel_callback) {} | 
|  | 
| -  // The renderer is requesting permission to use Geolocation. When the answer | 
| -  // to a permission request has been determined, |result_callback| should be | 
| -  // called with the result. If |cancel_callback| is non-null, it's set to a | 
| -  // callback which can be used to cancel the permission request. | 
| -  virtual void RequestGeolocationPermission( | 
| +  virtual void RequestPermission( | 
| +      PermissionType permission, | 
| WebContents* web_contents, | 
| int bridge_id, | 
| const GURL& requesting_frame, | 
| bool user_gesture, | 
| const base::Callback<void(bool)>& result_callback); | 
|  | 
| -  virtual void CancelGeolocationPermissionRequest( | 
| -      WebContents* web_contents, | 
| -      int bridge_id, | 
| -      const GURL& requesting_frame); | 
| - | 
| -  // Invoked when the Geolocation API uses its permission. | 
| -  virtual void DidUseGeolocationPermission(WebContents* web_contents, | 
| -                                           const GURL& frame_url, | 
| -                                           const GURL& main_frame_url) {} | 
| - | 
| -  // Requests a permission to use system exclusive messages in MIDI events. | 
| -  // |result_callback| will be invoked when the request is resolved. If | 
| -  // |cancel_callback| is non-null, it's set to a callback which can be used to | 
| -  // cancel the permission request. | 
| -  virtual void RequestMidiSysExPermission( | 
| -      WebContents* web_contents, | 
| -      int bridge_id, | 
| -      const GURL& requesting_frame, | 
| -      bool user_gesture, | 
| -      base::Callback<void(bool)> result_callback, | 
| -      base::Closure* cancel_callback); | 
| +  virtual void CancelPermissionRequest(PermissionType permission, | 
| +                                       WebContents* web_contents, | 
| +                                       int bridge_id, | 
| +                                       const GURL& requesting_frame) {} | 
|  | 
| -  // Request permission to access protected media identifier. |result_callback | 
| -  // will tell whether it's permitted. If |cancel_callback| is non-null, it's | 
| -  // set to a callback which can be used to cancel the permission request. | 
| -  virtual void RequestProtectedMediaIdentifierPermission( | 
| -      WebContents* web_contents, | 
| -      const GURL& origin, | 
| -      base::Callback<void(bool)> result_callback, | 
| -      base::Closure* cancel_callback); | 
| +  virtual void RegisterPermissionUsage(PermissionType permission, | 
| +                                       WebContents* web_contents, | 
| +                                       const GURL& frame_url, | 
| +                                       const GURL& main_frame_url) {} | 
|  | 
| // Returns true if the given page is allowed to open a window of the given | 
| // type. If true is returned, |no_javascript_access| will indicate whether | 
|  |