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

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: Process review, add security OWNERS Created 6 years, 1 month 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 base::i18n::TextDirection title_direction) override; 375 base::i18n::TextDirection title_direction) override;
379 void UpdateEncoding(RenderFrameHost* render_frame_host, 376 void UpdateEncoding(RenderFrameHost* render_frame_host,
380 const std::string& encoding) override; 377 const std::string& encoding) override;
381 WebContents* GetAsWebContents() override; 378 WebContents* GetAsWebContents() override;
382 bool IsNeverVisible() override; 379 bool IsNeverVisible() override;
383 AccessibilityMode GetAccessibilityMode() const override; 380 AccessibilityMode GetAccessibilityMode() const override;
384 void AccessibilityEventReceived( 381 void AccessibilityEventReceived(
385 const std::vector<AXEventNotificationDetails>& details) override; 382 const std::vector<AXEventNotificationDetails>& details) override;
386 RenderFrameHost* GetGuestByInstanceID( 383 RenderFrameHost* GetGuestByInstanceID(
387 int browser_plugin_instance_id) override; 384 int browser_plugin_instance_id) override;
385 virtual GeolocationServiceContext* GetGeolocationServiceContext() override;
Michael van Ouwerkerk 2014/10/24 10:25:42 Omit virtual
blundell 2014/10/24 11:45:18 Done.
388 #if defined(OS_WIN) 386 #if defined(OS_WIN)
389 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 387 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
Michael van Ouwerkerk 2014/10/24 10:25:42 Might as well delete it here too
blundell 2014/10/24 11:45:18 Done.
390 #endif 388 #endif
391 389
392 // RenderViewHostDelegate ---------------------------------------------------- 390 // RenderViewHostDelegate ----------------------------------------------------
393 RenderViewHostDelegateView* GetDelegateView() override; 391 RenderViewHostDelegateView* GetDelegateView() override;
394 bool OnMessageReceived(RenderViewHost* render_view_host, 392 bool OnMessageReceived(RenderViewHost* render_view_host,
395 const IPC::Message& message) override; 393 const IPC::Message& message) override;
396 // RenderFrameHostDelegate has the same method, so list it there because this 394 // RenderFrameHostDelegate has the same method, so list it there because this
397 // interface is going away. 395 // interface is going away.
398 // virtual WebContents* GetAsWebContents() override; 396 // virtual WebContents* GetAsWebContents() override;
399 gfx::Rect GetRootWindowResizerRect() const override; 397 gfx::Rect GetRootWindowResizerRect() const override;
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 // Whether this WebContents is responsible for displaying a subframe in a 1184 // Whether this WebContents is responsible for displaying a subframe in a
1187 // different process from its parent page. 1185 // different process from its parent page.
1188 bool is_subframe_; 1186 bool is_subframe_;
1189 1187
1190 // Whether overscroll should be unconditionally disabled. 1188 // Whether overscroll should be unconditionally disabled.
1191 bool force_disable_overscroll_content_; 1189 bool force_disable_overscroll_content_;
1192 1190
1193 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1191 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1194 bool last_dialog_suppressed_; 1192 bool last_dialog_suppressed_;
1195 1193
1194 scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
1195
1196 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1196 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1197 1197
1198 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_; 1198 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_;
1199 1199
1200 scoped_ptr<ScreenOrientationDispatcherHost> 1200 scoped_ptr<ScreenOrientationDispatcherHost>
1201 screen_orientation_dispatcher_host_; 1201 screen_orientation_dispatcher_host_;
1202 1202
1203 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1203 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1204 1204
1205 // The accessibility mode for all frames. This is queried when each frame 1205 // The accessibility mode for all frames. This is queried when each frame
1206 // is created, and broadcast to all frames when it changes. 1206 // is created, and broadcast to all frames when it changes.
1207 AccessibilityMode accessibility_mode_; 1207 AccessibilityMode accessibility_mode_;
1208 1208
1209 // Monitors power levels for audio streams associated with this WebContents. 1209 // Monitors power levels for audio streams associated with this WebContents.
1210 AudioStreamMonitor audio_stream_monitor_; 1210 AudioStreamMonitor audio_stream_monitor_;
1211 1211
1212 // Created on-demand to mute all audio output from this WebContents. 1212 // Created on-demand to mute all audio output from this WebContents.
1213 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1213 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1214 1214
1215 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1215 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1216 1216
1217 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1217 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1218 }; 1218 };
1219 1219
1220 } // namespace content 1220 } // namespace content
1221 1221
1222 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1222 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698