Index: content/browser/browser_plugin/browser_plugin_guest.h |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h |
index 5df45b493e683915e8a4936074d7d5f6c81ac5f4..2bbf2f22185988d2548c2a06a7f08f23bf57ef04 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.h |
+++ b/content/browser/browser_plugin/browser_plugin_guest.h |
@@ -404,8 +404,13 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver, |
NotificationRegistrar notification_registrar_; |
scoped_ptr<EmbedderRenderViewHostObserver> embedder_rvh_observer_; |
WebContentsImpl* embedder_web_contents_; |
- typedef std::map<int, GeolocationCallback> GeolocationRequestsMap; |
- GeolocationRequestsMap geolocation_request_callback_map_; |
+ |
+ // GeolocationRequestItem contains callback and bridge id for a request. |
+ typedef std::pair<GeolocationCallback, int> GeolocationRequestItem; |
+ typedef std::map<int, GeolocationRequestItem> GeolocationRequestsMap; |
+ GeolocationRequestsMap geolocation_request_map_; |
+ std::map<int, int> bridge_id_to_request_id_map_; |
+ |
// An identifier that uniquely identifies a browser plugin guest within an |
// embedder. |
int instance_id_; |