OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "wtf/Noncopyable.h" | 33 #include "wtf/Noncopyable.h" |
34 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class GeolocationClient; | 38 class GeolocationClient; |
39 class GeolocationError; | 39 class GeolocationError; |
40 class GeolocationPosition; | 40 class GeolocationPosition; |
41 class Page; | 41 class Page; |
42 | 42 |
43 class GeolocationController : public Supplement<Page>, public PageLifecycleObser
ver { | 43 class GeolocationController FINAL : public Supplement<Page>, public PageLifecycl
eObserver { |
44 WTF_MAKE_NONCOPYABLE(GeolocationController); | 44 WTF_MAKE_NONCOPYABLE(GeolocationController); |
45 public: | 45 public: |
46 ~GeolocationController(); | 46 ~GeolocationController(); |
47 | 47 |
48 static PassOwnPtr<GeolocationController> create(Page*, GeolocationClient*); | 48 static PassOwnPtr<GeolocationController> create(Page*, GeolocationClient*); |
49 | 49 |
50 void addObserver(Geolocation*, bool enableHighAccuracy); | 50 void addObserver(Geolocation*, bool enableHighAccuracy); |
51 void removeObserver(Geolocation*); | 51 void removeObserver(Geolocation*); |
52 | 52 |
53 void requestPermission(Geolocation*); | 53 void requestPermission(Geolocation*); |
(...skipping 22 matching lines...) Expand all Loading... |
76 typedef HashSet<RefPtr<Geolocation> > ObserversSet; | 76 typedef HashSet<RefPtr<Geolocation> > ObserversSet; |
77 // All observers; both those requesting high accuracy and those not. | 77 // All observers; both those requesting high accuracy and those not. |
78 ObserversSet m_observers; | 78 ObserversSet m_observers; |
79 ObserversSet m_highAccuracyObservers; | 79 ObserversSet m_highAccuracyObservers; |
80 bool m_isClientUpdating; | 80 bool m_isClientUpdating; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace WebCore |
84 | 84 |
85 #endif // GeolocationController_h | 85 #endif // GeolocationController_h |
OLD | NEW |