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

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

Issue 628773003: Partially convert geolocation IPC to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 6 years, 2 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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 struct ViewHostMsg_DateTimeDialogValue_Params; 45 struct ViewHostMsg_DateTimeDialogValue_Params;
46 struct ViewMsg_PostMessage_Params; 46 struct ViewMsg_PostMessage_Params;
47 47
48 namespace content { 48 namespace content {
49 class BrowserPluginEmbedder; 49 class BrowserPluginEmbedder;
50 class BrowserPluginGuest; 50 class BrowserPluginGuest;
51 class BrowserPluginGuestManager; 51 class BrowserPluginGuestManager;
52 class DateTimeChooserAndroid; 52 class DateTimeChooserAndroid;
53 class DownloadItem; 53 class DownloadItem;
54 class GeolocationDispatcherHost; 54 class GeolocationDispatcherHost;
55 class GeolocationServiceContext;
55 class InterstitialPageImpl; 56 class InterstitialPageImpl;
56 class JavaScriptDialogManager; 57 class JavaScriptDialogManager;
57 class ManifestManagerHost; 58 class ManifestManagerHost;
58 class MidiDispatcherHost; 59 class MidiDispatcherHost;
59 class PowerSaveBlocker; 60 class PowerSaveBlocker;
60 class RenderViewHost; 61 class RenderViewHost;
61 class RenderViewHostDelegateView; 62 class RenderViewHostDelegateView;
62 class RenderViewHostImpl; 63 class RenderViewHostImpl;
63 class RenderWidgetHostImpl; 64 class RenderWidgetHostImpl;
64 class SavePackage; 65 class SavePackage;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void DidGetResourceResponseStart( 167 void DidGetResourceResponseStart(
167 const ResourceRequestDetails& details); 168 const ResourceRequestDetails& details);
168 169
169 // A redirect was received while requesting a resource. 170 // A redirect was received while requesting a resource.
170 void DidGetRedirectForResourceRequest( 171 void DidGetRedirectForResourceRequest(
171 RenderViewHost* render_view_host, 172 RenderViewHost* render_view_host,
172 const ResourceRedirectDetails& details); 173 const ResourceRedirectDetails& details);
173 174
174 WebContentsView* GetView() const; 175 WebContentsView* GetView() const;
175 176
176 GeolocationDispatcherHost* geolocation_dispatcher_host() {
177 return geolocation_dispatcher_host_.get();
178 }
179
180 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { 177 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
181 return screen_orientation_dispatcher_host_.get(); 178 return screen_orientation_dispatcher_host_.get();
182 } 179 }
183 180
184 bool should_normally_be_visible() { return should_normally_be_visible_; } 181 bool should_normally_be_visible() { return should_normally_be_visible_; }
185 182
186 // Broadcasts the mode change to all frames. 183 // Broadcasts the mode change to all frames.
187 void SetAccessibilityMode(AccessibilityMode mode); 184 void SetAccessibilityMode(AccessibilityMode mode);
188 185
189 // Adds the given accessibility mode to the current accessibility mode 186 // Adds the given accessibility mode to the current accessibility mode
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 base::i18n::TextDirection title_direction) OVERRIDE; 383 base::i18n::TextDirection title_direction) OVERRIDE;
387 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, 384 virtual void UpdateEncoding(RenderFrameHost* render_frame_host,
388 const std::string& encoding) OVERRIDE; 385 const std::string& encoding) OVERRIDE;
389 virtual WebContents* GetAsWebContents() OVERRIDE; 386 virtual WebContents* GetAsWebContents() OVERRIDE;
390 virtual bool IsNeverVisible() OVERRIDE; 387 virtual bool IsNeverVisible() OVERRIDE;
391 virtual AccessibilityMode GetAccessibilityMode() const OVERRIDE; 388 virtual AccessibilityMode GetAccessibilityMode() const OVERRIDE;
392 virtual void AccessibilityEventReceived( 389 virtual void AccessibilityEventReceived(
393 const std::vector<AXEventNotificationDetails>& details) OVERRIDE; 390 const std::vector<AXEventNotificationDetails>& details) OVERRIDE;
394 virtual RenderFrameHost* GetGuestByInstanceID(int browser_plugin_instance_id) 391 virtual RenderFrameHost* GetGuestByInstanceID(int browser_plugin_instance_id)
395 OVERRIDE; 392 OVERRIDE;
393 virtual GeolocationServiceContext* GetGeolocationServiceContext() OVERRIDE;
396 #if defined(OS_WIN) 394 #if defined(OS_WIN)
397 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE; 395 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
398 #endif 396 #endif
399 397
400 // RenderViewHostDelegate ---------------------------------------------------- 398 // RenderViewHostDelegate ----------------------------------------------------
401 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 399 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
402 virtual bool OnMessageReceived(RenderViewHost* render_view_host, 400 virtual bool OnMessageReceived(RenderViewHost* render_view_host,
403 const IPC::Message& message) OVERRIDE; 401 const IPC::Message& message) OVERRIDE;
404 // RenderFrameHostDelegate has the same method, so list it there because this 402 // RenderFrameHostDelegate has the same method, so list it there because this
405 // interface is going away. 403 // interface is going away.
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 // Whether this WebContents is responsible for displaying a subframe in a 1214 // Whether this WebContents is responsible for displaying a subframe in a
1217 // different process from its parent page. 1215 // different process from its parent page.
1218 bool is_subframe_; 1216 bool is_subframe_;
1219 1217
1220 // Whether overscroll should be unconditionally disabled. 1218 // Whether overscroll should be unconditionally disabled.
1221 bool force_disable_overscroll_content_; 1219 bool force_disable_overscroll_content_;
1222 1220
1223 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1221 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1224 bool last_dialog_suppressed_; 1222 bool last_dialog_suppressed_;
1225 1223
1224 scoped_ptr<GeolocationServiceContext> geolocation_context_;
Michael van Ouwerkerk 2014/10/09 13:11:23 Nit: geolocation_service_context_
blundell 2014/10/21 12:27:50 Done.
1225
1226 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1226 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1227 1227
1228 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_; 1228 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_;
1229 1229
1230 scoped_ptr<ScreenOrientationDispatcherHost> 1230 scoped_ptr<ScreenOrientationDispatcherHost>
1231 screen_orientation_dispatcher_host_; 1231 screen_orientation_dispatcher_host_;
1232 1232
1233 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1233 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1234 1234
1235 // The accessibility mode for all frames. This is queried when each frame 1235 // The accessibility mode for all frames. This is queried when each frame
1236 // is created, and broadcast to all frames when it changes. 1236 // is created, and broadcast to all frames when it changes.
1237 AccessibilityMode accessibility_mode_; 1237 AccessibilityMode accessibility_mode_;
1238 1238
1239 // Monitors power levels for audio streams associated with this WebContents. 1239 // Monitors power levels for audio streams associated with this WebContents.
1240 AudioStreamMonitor audio_stream_monitor_; 1240 AudioStreamMonitor audio_stream_monitor_;
1241 1241
1242 // Created on-demand to mute all audio output from this WebContents. 1242 // Created on-demand to mute all audio output from this WebContents.
1243 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1243 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1244 1244
1245 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1245 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1246 1246
1247 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1247 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1248 }; 1248 };
1249 1249
1250 } // namespace content 1250 } // namespace content
1251 1251
1252 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1252 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698