| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 8 #include <map> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Triggers the associated UI element to request permission. | 44 // Triggers the associated UI element to request permission. |
| 45 void RequestPermissionFromUI( | 45 void RequestPermissionFromUI( |
| 46 int render_process_id, int render_view_id, int bridge_id, | 46 int render_process_id, int render_view_id, int bridge_id, |
| 47 const GURL& requesting_frame); | 47 const GURL& requesting_frame); |
| 48 | 48 |
| 49 // Notifies whether or not the corresponding render is allowed to use | 49 // Notifies whether or not the corresponding render is allowed to use |
| 50 // geolocation. | 50 // geolocation. |
| 51 void NotifyPermissionSet( | 51 void NotifyPermissionSet( |
| 52 int render_process_id, int render_view_id, int bridge_id, | 52 int render_process_id, int render_view_id, int bridge_id, |
| 53 bool allowed); | 53 const GURL& requesting_frame, bool allowed); |
| 54 | 54 |
| 55 // This should only be accessed from the UI thread. | 55 // This should only be accessed from the UI thread. |
| 56 Profile* const profile_; | 56 Profile* const profile_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); | 58 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ | 61 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| OLD | NEW |