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_RENDERER_GEOLOCATION_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ |
6 #define CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION) | |
10 | |
11 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h" |
13 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationController.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationController.h" |
14 | 12 |
15 class RenderView; | 13 class RenderView; |
16 struct Geoposition; | 14 struct Geoposition; |
17 | 15 |
18 namespace WebKit { | 16 namespace WebKit { |
19 class WebGeolocationController; | 17 class WebGeolocationController; |
20 class WebGeolocationPermissionRequest; | 18 class WebGeolocationPermissionRequest; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // The controller_ is valid for the lifetime of the underlying | 61 // The controller_ is valid for the lifetime of the underlying |
64 // WebCore::GeolocationController. geolocationDestroyed() is | 62 // WebCore::GeolocationController. geolocationDestroyed() is |
65 // invoked when the underlying object is destroyed. | 63 // invoked when the underlying object is destroyed. |
66 scoped_ptr< WebKit::WebGeolocationController> controller_; | 64 scoped_ptr< WebKit::WebGeolocationController> controller_; |
67 | 65 |
68 scoped_ptr<WebKit::WebGeolocationPermissionRequestManager> | 66 scoped_ptr<WebKit::WebGeolocationPermissionRequestManager> |
69 pending_permissions_; | 67 pending_permissions_; |
70 bool enable_high_accuracy_; | 68 bool enable_high_accuracy_; |
71 bool updating_; | 69 bool updating_; |
72 }; | 70 }; |
73 #endif // ENABLE_CLIENT_BASED_GEOLOCATION | |
74 | 71 |
75 #endif // CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ | 72 #endif // CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ |
OLD | NEW |