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

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

Issue 256843004: Get the WebGeolocationClient from WebFrameClient instead of WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix linking errors Created 6 years, 7 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 a30890d859946af377d3cb7c84a4c2b5d014fe3d..3cd22bbb3bf2c732bb57769d9e8b0f8c6e32ac67 100644
--- a/Source/modules/geolocation/testing/GeolocationClientMock.h
+++ b/Source/modules/geolocation/testing/GeolocationClientMock.h
@@ -50,8 +50,6 @@ public:
GeolocationClientMock();
virtual ~GeolocationClientMock();
- void setController(GeolocationController*);
-
void setPosition(PassRefPtrWillBeRawPtr<GeolocationPosition>);
void setPositionUnavailableError(const String& errorMessage);
void setPermission(bool allowed);
@@ -65,6 +63,8 @@ public:
virtual GeolocationPosition* lastPosition() OVERRIDE;
virtual void requestPermission(Geolocation*) OVERRIDE;
virtual void cancelPermissionRequest(Geolocation*) OVERRIDE;
+ void controllerForTestAdded(GeolocationController*) OVERRIDE;
+ void controllerForTestRemoved(GeolocationController*) OVERRIDE;
private:
void asyncUpdateController();
@@ -75,7 +75,7 @@ private:
void clearError();
- GeolocationController* m_controller;
+ HashSet<GeolocationController*> m_controllers;
RefPtrWillBePersistent<GeolocationPosition> m_lastPosition;
bool m_hasError;
String m_errorMessage;

Powered by Google App Engine
This is Rietveld 408576698