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

Unified Diff: Source/modules/geolocation/testing/GeolocationClientMock.h

Issue 332153002: Oilpan: have GeolocationInspectorAgent persistently track its controllers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make hash sets over controllers will-be-persistents 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/geolocation/testing/GeolocationClientMock.h
diff --git a/Source/modules/geolocation/testing/GeolocationClientMock.h b/Source/modules/geolocation/testing/GeolocationClientMock.h
index 3bb6a45643066ec915ad145230dd2f319f09419c..b75f3cc05b4323fa0ff819fe62916fc1b3187569 100644
--- a/Source/modules/geolocation/testing/GeolocationClientMock.h
+++ b/Source/modules/geolocation/testing/GeolocationClientMock.h
@@ -74,7 +74,8 @@ private:
void clearError();
- HashSet<GeolocationController*> m_controllers;
+ typedef WillBeHeapHashSet<RawPtrWillBeMember<GeolocationController> > GeolocationControllers;
+ WillBePersistentHeapHashSet<RawPtrWillBeMember<GeolocationController> > m_controllers;
Persistent<GeolocationPosition> m_lastPosition;
bool m_hasError;
String m_errorMessage;
@@ -89,8 +90,8 @@ private:
};
PermissionState m_permissionState;
- typedef PersistentHeapHashSet<Member<Geolocation> > GeolocationSet;
- GeolocationSet m_pendingPermissions;
+ typedef HeapHashSet<Member<Geolocation> > GeolocationSet;
+ PersistentHeapHashSet<Member<Geolocation> > m_pendingPermissions;
};
}
« no previous file with comments | « Source/modules/geolocation/GeolocationInspectorAgent.cpp ('k') | Source/modules/geolocation/testing/GeolocationClientMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698