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

Side by Side Diff: Source/modules/geolocation/GeoNotifier.h

Issue 402563002: Separate GeolocationWatchers from Geolocation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/modules/geolocation/GeoNotifier.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 GeoNotifier_h 5 #ifndef GeoNotifier_h
6 #define GeoNotifier_h 6 #define GeoNotifier_h
7 7
8 #include "modules/geolocation/PositionCallback.h"
9 #include "modules/geolocation/PositionErrorCallback.h"
8 #include "platform/Timer.h" 10 #include "platform/Timer.h"
9 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
10 12
11 namespace blink { 13 namespace blink {
12 14
13 class Geolocation; 15 class Geolocation;
14 class Geoposition; 16 class Geoposition;
15 class PositionCallback;
16 class PositionError; 17 class PositionError;
17 class PositionErrorCallback;
18 class PositionOptions; 18 class PositionOptions;
19 19
20 class GeoNotifier : public GarbageCollectedFinalized<GeoNotifier> { 20 class GeoNotifier : public GarbageCollectedFinalized<GeoNotifier> {
21 public: 21 public:
22 static GeoNotifier* create(Geolocation* geolocation, PassOwnPtr<PositionCall back> positionCallback, PassOwnPtr<PositionErrorCallback> positionErrorCallback, PositionOptions* options) 22 static GeoNotifier* create(Geolocation* geolocation, PassOwnPtr<PositionCall back> positionCallback, PassOwnPtr<PositionErrorCallback> positionErrorCallback, PositionOptions* options)
23 { 23 {
24 return new GeoNotifier(geolocation, positionCallback, positionErrorCallb ack, options); 24 return new GeoNotifier(geolocation, positionCallback, positionErrorCallb ack, options);
25 } 25 }
26 void trace(Visitor*); 26 void trace(Visitor*);
27 27
(...skipping 28 matching lines...) Expand all
56 OwnPtr<PositionErrorCallback> m_errorCallback; 56 OwnPtr<PositionErrorCallback> m_errorCallback;
57 Member<PositionOptions> m_options; 57 Member<PositionOptions> m_options;
58 Timer<GeoNotifier> m_timer; 58 Timer<GeoNotifier> m_timer;
59 Member<PositionError> m_fatalError; 59 Member<PositionError> m_fatalError;
60 bool m_useCachedPosition; 60 bool m_useCachedPosition;
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // GeoNotifier_h 65 #endif // GeoNotifier_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/geolocation/GeoNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698