| OLD | NEW | 
|    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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  443  |  443  | 
|  444   // The renderer is requesting permission to use Geolocation. When the answer |  444   // The renderer is requesting permission to use Geolocation. When the answer | 
|  445   // to a permission request has been determined, |result_callback| should be |  445   // to a permission request has been determined, |result_callback| should be | 
|  446   // 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 | 
|  447   // callback which can be used to cancel the permission request. |  447   // callback which can be used to cancel the permission request. | 
|  448   virtual void RequestGeolocationPermission( |  448   virtual void RequestGeolocationPermission( | 
|  449       WebContents* web_contents, |  449       WebContents* web_contents, | 
|  450       int bridge_id, |  450       int bridge_id, | 
|  451       const GURL& requesting_frame, |  451       const GURL& requesting_frame, | 
|  452       bool user_gesture, |  452       bool user_gesture, | 
|  453       base::Callback<void(bool)> result_callback, |  453       const base::Callback<void(bool)> result_callback); | 
|  454       base::Closure* cancel_callback); |  454  | 
 |  455   virtual void CancelGeolocationPermissionRequest( | 
 |  456       WebContents* web_contents, | 
 |  457       int bridge_id, | 
 |  458       const GURL& requesting_frame); | 
|  455  |  459  | 
|  456   // Invoked when the Geolocation API uses its permission. |  460   // Invoked when the Geolocation API uses its permission. | 
|  457   virtual void DidUseGeolocationPermission(WebContents* web_contents, |  461   virtual void DidUseGeolocationPermission(WebContents* web_contents, | 
|  458                                            const GURL& frame_url, |  462                                            const GURL& frame_url, | 
|  459                                            const GURL& main_frame_url) {} |  463                                            const GURL& main_frame_url) {} | 
|  460  |  464  | 
|  461   // Requests a permission to use system exclusive messages in MIDI events. |  465   // Requests a permission to use system exclusive messages in MIDI events. | 
|  462   // |result_callback| will be invoked when the request is resolved. If |  466   // |result_callback| will be invoked when the request is resolved. If | 
|  463   // |cancel_callback| is non-null, it's set to a callback which can be used to |  467   // |cancel_callback| is non-null, it's set to a callback which can be used to | 
|  464   // cancel the permission request. |  468   // cancel the permission request. | 
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  653   // Allows an embedder to provide its own ExternalVideoSurfaceContainer |  657   // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 
|  654   // implementation.  Return NULL to disable external surface video. |  658   // implementation.  Return NULL to disable external surface video. | 
|  655   virtual ExternalVideoSurfaceContainer* |  659   virtual ExternalVideoSurfaceContainer* | 
|  656   OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |  660   OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 
|  657 #endif |  661 #endif | 
|  658 }; |  662 }; | 
|  659  |  663  | 
|  660 }  // namespace content |  664 }  // namespace content | 
|  661  |  665  | 
|  662 #endif  // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |  666 #endif  // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 
| OLD | NEW |