| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_GEOLOCATION_PERMISSION_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "chrome/browser/content_settings/permission_context_base.h" | 9 #include "chrome/browser/content_settings/permission_context_base.h" |
| 10 #include "chrome/browser/geolocation/geolocation_permission_context_extensions.h
" | 10 #include "chrome/browser/geolocation/geolocation_permission_context_extensions.h
" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const BrowserPermissionCallback& callback) override; | 31 const BrowserPermissionCallback& callback) override; |
| 32 | 32 |
| 33 // Adds special logic when called through an extension. | 33 // Adds special logic when called through an extension. |
| 34 void CancelPermissionRequest(content::WebContents* web_contents, | 34 void CancelPermissionRequest(content::WebContents* web_contents, |
| 35 const PermissionRequestID& id) override; | 35 const PermissionRequestID& id) override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void UpdateTabContext(const PermissionRequestID& id, | 38 void UpdateTabContext(const PermissionRequestID& id, |
| 39 const GURL& requesting_frame, | 39 const GURL& requesting_frame, |
| 40 bool allowed) override; | 40 bool allowed) override; |
| 41 bool RestrictToSecureOrigins() const override; |
| 41 | 42 |
| 42 // This must only be accessed from the UI thread. | 43 // This must only be accessed from the UI thread. |
| 43 GeolocationPermissionContextExtensions extensions_context_; | 44 GeolocationPermissionContextExtensions extensions_context_; |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); | 46 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ | 49 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| OLD | NEW |