Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 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 const GURL& embedder, | 32 const GURL& embedder, |
| 33 const std::string accept_button_label, | |
|
bulach
2014/02/14 11:36:48
nit: &
acleung1
2014/02/21 21:18:01
Done.
| |
| 33 base::Callback<void(bool)> callback) OVERRIDE; | 34 base::Callback<void(bool)> callback) OVERRIDE; |
| 34 | 35 |
| 35 virtual void PermissionDecided(const PermissionRequestID& id, | 36 virtual void PermissionDecided(const PermissionRequestID& id, |
| 36 const GURL& requesting_frame, | 37 const GURL& requesting_frame, |
| 37 const GURL& embedder, | 38 const GURL& embedder, |
| 38 base::Callback<void(bool)> callback, | 39 base::Callback<void(bool)> callback, |
| 39 bool allowed) OVERRIDE; | 40 bool allowed) OVERRIDE; |
| 40 | 41 |
| 42 void ProceedDecidePermission(content::WebContents* web_contents, | |
| 43 const PermissionRequestID& id, | |
| 44 const GURL& requesting_frame, | |
| 45 const GURL& embedder, | |
| 46 const std::string accept_button_label, | |
|
bulach
2014/02/14 11:36:48
nit: &
acleung1
2014/02/21 21:18:01
Done.
| |
| 47 base::Callback<void(bool)> callback); | |
| 48 | |
| 41 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; | 49 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; |
| 42 | 50 |
| 51 private: | |
| 52 void CheckMasterLocation(content::WebContents* web_contents, | |
| 53 const PermissionRequestID& id, | |
| 54 const GURL& requesting_frame, | |
| 55 const GURL& embedder, | |
| 56 base::Callback<void(bool)> callback); | |
| 57 | |
| 43 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); | 58 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); |
| 44 }; | 59 }; |
| 45 | 60 |
| 46 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ | 61 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ |
| OLD | NEW |