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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 273523007: Dispatch geolocation IPCs on the UI thread. Aside from simplifying the code to avoid a lot of threa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 struct BrowserPluginHostMsg_ResizeGuest_Params; 41 struct BrowserPluginHostMsg_ResizeGuest_Params;
42 struct ViewHostMsg_DateTimeDialogValue_Params; 42 struct ViewHostMsg_DateTimeDialogValue_Params;
43 struct ViewMsg_PostMessage_Params; 43 struct ViewMsg_PostMessage_Params;
44 44
45 namespace content { 45 namespace content {
46 class BrowserPluginEmbedder; 46 class BrowserPluginEmbedder;
47 class BrowserPluginGuest; 47 class BrowserPluginGuest;
48 class BrowserPluginGuestManager; 48 class BrowserPluginGuestManager;
49 class DateTimeChooserAndroid; 49 class DateTimeChooserAndroid;
50 class DownloadItem; 50 class DownloadItem;
51 class GeolocationDispatcherHost;
51 class InterstitialPageImpl; 52 class InterstitialPageImpl;
52 class JavaBridgeDispatcherHostManager; 53 class JavaBridgeDispatcherHostManager;
53 class JavaScriptDialogManager; 54 class JavaScriptDialogManager;
54 class PowerSaveBlocker; 55 class PowerSaveBlocker;
55 class RenderViewHost; 56 class RenderViewHost;
56 class RenderViewHostDelegateView; 57 class RenderViewHostDelegateView;
57 class RenderViewHostImpl; 58 class RenderViewHostImpl;
58 class RenderWidgetHostImpl; 59 class RenderWidgetHostImpl;
59 class SavePackage; 60 class SavePackage;
60 class SessionStorageNamespaceImpl; 61 class SessionStorageNamespaceImpl;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void DidGetResourceResponseStart( 166 void DidGetResourceResponseStart(
166 const ResourceRequestDetails& details); 167 const ResourceRequestDetails& details);
167 168
168 // A redirect was received while requesting a resource. 169 // A redirect was received while requesting a resource.
169 void DidGetRedirectForResourceRequest( 170 void DidGetRedirectForResourceRequest(
170 RenderViewHost* render_view_host, 171 RenderViewHost* render_view_host,
171 const ResourceRedirectDetails& details); 172 const ResourceRedirectDetails& details);
172 173
173 WebContentsView* GetView() const; 174 WebContentsView* GetView() const;
174 175
176 GeolocationDispatcherHost* geolocation_dispatcher_host() {
177 return geolocation_dispatcher_host_.get();
178 }
179
175 // WebContents ------------------------------------------------------ 180 // WebContents ------------------------------------------------------
176 virtual WebContentsDelegate* GetDelegate() OVERRIDE; 181 virtual WebContentsDelegate* GetDelegate() OVERRIDE;
177 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; 182 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;
178 virtual NavigationControllerImpl& GetController() OVERRIDE; 183 virtual NavigationControllerImpl& GetController() OVERRIDE;
179 virtual const NavigationControllerImpl& GetController() const OVERRIDE; 184 virtual const NavigationControllerImpl& GetController() const OVERRIDE;
180 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 185 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
181 virtual const GURL& GetURL() const OVERRIDE; 186 virtual const GURL& GetURL() const OVERRIDE;
182 virtual const GURL& GetVisibleURL() const OVERRIDE; 187 virtual const GURL& GetVisibleURL() const OVERRIDE;
183 virtual const GURL& GetLastCommittedURL() const OVERRIDE; 188 virtual const GURL& GetLastCommittedURL() const OVERRIDE;
184 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 189 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 1107 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
1103 ImageDownloadMap image_download_map_; 1108 ImageDownloadMap image_download_map_;
1104 1109
1105 // Whether this WebContents is responsible for displaying a subframe in a 1110 // Whether this WebContents is responsible for displaying a subframe in a
1106 // different process from its parent page. 1111 // different process from its parent page.
1107 bool is_subframe_; 1112 bool is_subframe_;
1108 1113
1109 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1114 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1110 bool last_dialog_suppressed_; 1115 bool last_dialog_suppressed_;
1111 1116
1117 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1118
1112 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1119 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1113 }; 1120 };
1114 1121
1115 } // namespace content 1122 } // namespace content
1116 1123
1117 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1124 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698