| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class GeolocationClient; | 39 class GeolocationClient; |
| 40 class GeolocationError; | 40 class GeolocationError; |
| 41 class GeolocationPosition; | 41 class GeolocationPosition; |
| 42 | 42 |
| 43 class MODULES_EXPORT GeolocationController final : public NoBaseWillBeGarbageCol
lectedFinalized<GeolocationController>, public WillBeHeapSupplement<LocalFrame>,
public PageLifecycleObserver { | 43 class MODULES_EXPORT GeolocationController final : public NoBaseWillBeGarbageCol
lectedFinalized<GeolocationController>, public WillBeHeapSupplement<LocalFrame>,
public PageLifecycleObserver { |
| 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(GeolocationController); | 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(GeolocationController); |
| 45 WTF_MAKE_NONCOPYABLE(GeolocationController); | 45 WTF_MAKE_NONCOPYABLE(GeolocationController); |
| 46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(GeolocationController); |
| 46 public: | 47 public: |
| 47 virtual ~GeolocationController(); | 48 virtual ~GeolocationController(); |
| 48 | 49 |
| 49 static PassOwnPtrWillBeRawPtr<GeolocationController> create(LocalFrame&, Geo
locationClient*); | 50 static PassOwnPtrWillBeRawPtr<GeolocationController> create(LocalFrame&, Geo
locationClient*); |
| 50 | 51 |
| 51 void addObserver(Geolocation*, bool enableHighAccuracy); | 52 void addObserver(Geolocation*, bool enableHighAccuracy); |
| 52 void removeObserver(Geolocation*); | 53 void removeObserver(Geolocation*); |
| 53 | 54 |
| 54 void requestPermission(Geolocation*); | 55 void requestPermission(Geolocation*); |
| 55 void cancelPermissionRequest(Geolocation*); | 56 void cancelPermissionRequest(Geolocation*); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 85 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation>> Observer
sSet; | 86 typedef PersistentHeapHashSetWillBeHeapHashSet<Member<Geolocation>> Observer
sSet; |
| 86 // All observers; both those requesting high accuracy and those not. | 87 // All observers; both those requesting high accuracy and those not. |
| 87 ObserversSet m_observers; | 88 ObserversSet m_observers; |
| 88 ObserversSet m_highAccuracyObservers; | 89 ObserversSet m_highAccuracyObservers; |
| 89 bool m_isClientUpdating; | 90 bool m_isClientUpdating; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace blink | 93 } // namespace blink |
| 93 | 94 |
| 94 #endif // GeolocationController_h | 95 #endif // GeolocationController_h |
| OLD | NEW |