Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: Source/web/GeolocationClientProxy.h

Issue 319863003: Enable Oilpan for modules/geolocation by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef GeolocationClientProxy_h 26 #ifndef GeolocationClientProxy_h
27 #define GeolocationClientProxy_h 27 #define GeolocationClientProxy_h
28 28
29 #include "modules/geolocation/GeolocationClient.h" 29 #include "modules/geolocation/GeolocationClient.h"
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "public/web/WebGeolocationController.h" 31 #include "public/web/WebGeolocationController.h"
32 #include "wtf/RefPtr.h"
33 32
34 namespace WebCore { 33 namespace WebCore {
35 class GeolocationPosition; 34 class GeolocationPosition;
36 } 35 }
37 36
38 namespace blink { 37 namespace blink {
39 class WebGeolocationClient; 38 class WebGeolocationClient;
40 39
41 class GeolocationClientProxy FINAL : public WebCore::GeolocationClient { 40 class GeolocationClientProxy FINAL : public WebCore::GeolocationClient {
42 public: 41 public:
43 GeolocationClientProxy(WebGeolocationClient* client); 42 GeolocationClientProxy(WebGeolocationClient* client);
44 virtual ~GeolocationClientProxy(); 43 virtual ~GeolocationClientProxy();
45 void setController(WebCore::GeolocationController *controller); 44 void setController(WebCore::GeolocationController *controller);
46 virtual void geolocationDestroyed() OVERRIDE; 45 virtual void geolocationDestroyed() OVERRIDE;
47 virtual void startUpdating() OVERRIDE; 46 virtual void startUpdating() OVERRIDE;
48 virtual void stopUpdating() OVERRIDE; 47 virtual void stopUpdating() OVERRIDE;
49 virtual void setEnableHighAccuracy(bool) OVERRIDE; 48 virtual void setEnableHighAccuracy(bool) OVERRIDE;
50 virtual WebCore::GeolocationPosition* lastPosition() OVERRIDE; 49 virtual WebCore::GeolocationPosition* lastPosition() OVERRIDE;
51 50
52 virtual void requestPermission(WebCore::Geolocation*) OVERRIDE; 51 virtual void requestPermission(WebCore::Geolocation*) OVERRIDE;
53 virtual void cancelPermissionRequest(WebCore::Geolocation*) OVERRIDE; 52 virtual void cancelPermissionRequest(WebCore::Geolocation*) OVERRIDE;
54 53
55 private: 54 private:
56 WebGeolocationClient* m_client; 55 WebGeolocationClient* m_client;
57 RefPtrWillBePersistent<WebCore::GeolocationPosition> m_lastPosition; 56 WebCore::Persistent<WebCore::GeolocationPosition> m_lastPosition;
58 }; 57 };
59 58
60 } // namespace blink 59 } // namespace blink
61 60
62 #endif // GeolocationClientProxy_h 61 #endif // GeolocationClientProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698