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 CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ |
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ |
7 | 7 |
8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 private: | 23 private: |
24 friend class ChromeGeolocationPermissionContext; | 24 friend class ChromeGeolocationPermissionContext; |
25 | 25 |
26 virtual ~ChromeGeolocationPermissionContextAndroid(); | 26 virtual ~ChromeGeolocationPermissionContextAndroid(); |
27 | 27 |
28 // ChromeGeolocationPermissionContext implementation: | 28 // ChromeGeolocationPermissionContext implementation: |
29 virtual void DecidePermission(content::WebContents* web_contents, | 29 virtual void DecidePermission(content::WebContents* web_contents, |
30 const PermissionRequestID& id, | 30 const PermissionRequestID& id, |
31 const GURL& requesting_frame, | 31 const GURL& requesting_frame, |
| 32 bool user_gesture, |
32 const GURL& embedder, | 33 const GURL& embedder, |
33 const std::string& accept_button_label, | 34 const std::string& accept_button_label, |
34 base::Callback<void(bool)> callback) OVERRIDE; | 35 base::Callback<void(bool)> callback) OVERRIDE; |
35 | 36 |
36 virtual void PermissionDecided(const PermissionRequestID& id, | 37 virtual void PermissionDecided(const PermissionRequestID& id, |
37 const GURL& requesting_frame, | 38 const GURL& requesting_frame, |
38 const GURL& embedder, | 39 const GURL& embedder, |
39 base::Callback<void(bool)> callback, | 40 base::Callback<void(bool)> callback, |
40 bool allowed) OVERRIDE; | 41 bool allowed) OVERRIDE; |
41 | 42 |
(...skipping 10 matching lines...) Expand all Loading... |
52 void CheckMasterLocation(content::WebContents* web_contents, | 53 void CheckMasterLocation(content::WebContents* web_contents, |
53 const PermissionRequestID& id, | 54 const PermissionRequestID& id, |
54 const GURL& requesting_frame, | 55 const GURL& requesting_frame, |
55 const GURL& embedder, | 56 const GURL& embedder, |
56 base::Callback<void(bool)> callback); | 57 base::Callback<void(bool)> callback); |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); | 59 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR
OID_H_ | 62 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR
OID_H_ |
OLD | NEW |