OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 GeolocationServiceContext* GetGeolocationServiceContext() override; |
388 #if defined(OS_WIN) | 386 #if defined(OS_WIN) |
389 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 387 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 // Whether this WebContents is responsible for displaying a subframe in a | 1185 // Whether this WebContents is responsible for displaying a subframe in a |
1188 // different process from its parent page. | 1186 // different process from its parent page. |
1189 bool is_subframe_; | 1187 bool is_subframe_; |
1190 | 1188 |
1191 // Whether overscroll should be unconditionally disabled. | 1189 // Whether overscroll should be unconditionally disabled. |
1192 bool force_disable_overscroll_content_; | 1190 bool force_disable_overscroll_content_; |
1193 | 1191 |
1194 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1192 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1195 bool last_dialog_suppressed_; | 1193 bool last_dialog_suppressed_; |
1196 | 1194 |
| 1195 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; |
| 1196 |
1197 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; | 1197 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
1198 | 1198 |
1199 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_; | 1199 scoped_ptr<MidiDispatcherHost> midi_dispatcher_host_; |
1200 | 1200 |
1201 scoped_ptr<ScreenOrientationDispatcherHost> | 1201 scoped_ptr<ScreenOrientationDispatcherHost> |
1202 screen_orientation_dispatcher_host_; | 1202 screen_orientation_dispatcher_host_; |
1203 | 1203 |
1204 scoped_ptr<ManifestManagerHost> manifest_manager_host_; | 1204 scoped_ptr<ManifestManagerHost> manifest_manager_host_; |
1205 | 1205 |
1206 // The accessibility mode for all frames. This is queried when each frame | 1206 // The accessibility mode for all frames. This is queried when each frame |
1207 // is created, and broadcast to all frames when it changes. | 1207 // is created, and broadcast to all frames when it changes. |
1208 AccessibilityMode accessibility_mode_; | 1208 AccessibilityMode accessibility_mode_; |
1209 | 1209 |
1210 // Monitors power levels for audio streams associated with this WebContents. | 1210 // Monitors power levels for audio streams associated with this WebContents. |
1211 AudioStreamMonitor audio_stream_monitor_; | 1211 AudioStreamMonitor audio_stream_monitor_; |
1212 | 1212 |
1213 // Created on-demand to mute all audio output from this WebContents. | 1213 // Created on-demand to mute all audio output from this WebContents. |
1214 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1214 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1215 | 1215 |
1216 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1216 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1217 | 1217 |
1218 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1218 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1219 }; | 1219 }; |
1220 | 1220 |
1221 } // namespace content | 1221 } // namespace content |
1222 | 1222 |
1223 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1223 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |