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

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

Issue 1318793005: [part 2] Make classes and structures in modules fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/geolocation/GeolocationClient.h ('k') | Source/modules/geolocation/testing/GeolocationClientMock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698