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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 const GURL& requesting_frame); | 39 const GURL& requesting_frame); |
40 | 40 |
41 // Notifies whether or not the corresponding bridge is allowed to use | 41 // Notifies whether or not the corresponding bridge is allowed to use |
42 // geolocation via ViewMsg_Geolocation_PermissionSet. | 42 // geolocation via ViewMsg_Geolocation_PermissionSet. |
43 void NotifyPermissionSet( | 43 void NotifyPermissionSet( |
44 int render_process_id, int render_view_id, int bridge_id, | 44 int render_process_id, int render_view_id, int bridge_id, |
45 const GURL& requesting_frame, bool allowed); | 45 const GURL& requesting_frame, bool allowed); |
46 | 46 |
47 // Called when a geolocation object wants to start receiving location updates. | 47 // Called when a geolocation object wants to start receiving location updates. |
48 // This also applies global policy around which location providers may be | 48 // This also applies global policy around which location providers may be |
49 // enbaled at a given time (e.g. prior to the user agreeing to any geolocation | 49 // enabled at a given time (e.g. prior to the user agreeing to any geolocation |
50 // permission requests). | 50 // permission requests). |
51 void StartUpdatingRequested( | 51 void StartUpdatingRequested( |
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 const GURL& requesting_frame); | 53 const GURL& requesting_frame); |
54 | 54 |
55 // Called when a geolocation object has stopped. Because we are | 55 // Called when a geolocation object has stopped. Because we are |
56 // short-circuiting permission request (see StartUpdatingRequested above), we | 56 // short-circuiting permission request (see StartUpdatingRequested above), we |
57 // cancel any pending permission in here, since WebKit doesn't know about the | 57 // cancel any pending permission in here, since WebKit doesn't know about the |
58 // pending permission request and will never call | 58 // pending permission request and will never call |
59 // CancelGeolocationPermissionRequest(). | 59 // CancelGeolocationPermissionRequest(). |
(...skipping 14 matching lines...) Expand all Loading... |
74 // This should only be accessed from the UI thread. | 74 // This should only be accessed from the UI thread. |
75 Profile* const profile_; | 75 Profile* const profile_; |
76 | 76 |
77 scoped_ptr<GeolocationInfoBarQueueController> | 77 scoped_ptr<GeolocationInfoBarQueueController> |
78 geolocation_infobar_queue_controller_; | 78 geolocation_infobar_queue_controller_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); | 80 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); |
81 }; | 81 }; |
82 | 82 |
83 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ | 83 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ |
OLD | NEW |