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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/containers/scoped_ptr_hash_map.h" | 15 #include "base/containers/scoped_ptr_hash_map.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/process/process.h" | 20 #include "base/process/process.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "content/browser/frame_host/frame_tree.h" | 23 #include "content/browser/frame_host/frame_tree.h" |
24 #include "content/browser/frame_host/navigation_controller_delegate.h" | 24 #include "content/browser/frame_host/navigation_controller_delegate.h" |
25 #include "content/browser/frame_host/navigation_controller_impl.h" | 25 #include "content/browser/frame_host/navigation_controller_impl.h" |
26 #include "content/browser/frame_host/navigator_delegate.h" | 26 #include "content/browser/frame_host/navigator_delegate.h" |
27 #include "content/browser/frame_host/render_frame_host_delegate.h" | 27 #include "content/browser/frame_host/render_frame_host_delegate.h" |
28 #include "content/browser/frame_host/render_frame_host_manager.h" | 28 #include "content/browser/frame_host/render_frame_host_manager.h" |
| 29 #include "content/browser/loader/loader_io_thread_notifier_impl.h" |
29 #include "content/browser/media/audio_stream_monitor.h" | 30 #include "content/browser/media/audio_stream_monitor.h" |
30 #include "content/browser/renderer_host/render_view_host_delegate.h" | 31 #include "content/browser/renderer_host/render_view_host_delegate.h" |
31 #include "content/browser/renderer_host/render_view_host_impl.h" | 32 #include "content/browser/renderer_host/render_view_host_impl.h" |
32 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 33 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
33 #include "content/common/accessibility_mode_enums.h" | 34 #include "content/common/accessibility_mode_enums.h" |
34 #include "content/common/content_export.h" | 35 #include "content/common/content_export.h" |
35 #include "content/public/browser/color_chooser.h" | 36 #include "content/public/browser/color_chooser.h" |
36 #include "content/public/browser/notification_observer.h" | 37 #include "content/public/browser/notification_observer.h" |
37 #include "content/public/browser/notification_registrar.h" | 38 #include "content/public/browser/notification_registrar.h" |
38 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 AccessibilityMode accessibility_mode_; | 1283 AccessibilityMode accessibility_mode_; |
1283 | 1284 |
1284 // Monitors power levels for audio streams associated with this WebContents. | 1285 // Monitors power levels for audio streams associated with this WebContents. |
1285 AudioStreamMonitor audio_stream_monitor_; | 1286 AudioStreamMonitor audio_stream_monitor_; |
1286 | 1287 |
1287 // Created on-demand to mute all audio output from this WebContents. | 1288 // Created on-demand to mute all audio output from this WebContents. |
1288 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1289 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1289 | 1290 |
1290 bool virtual_keyboard_requested_; | 1291 bool virtual_keyboard_requested_; |
1291 | 1292 |
| 1293 // Notifies ResourceDispatcherHostImpl of various events related to loading. |
| 1294 scoped_ptr<LoaderIOThreadNotifierImpl> loader_io_thread_notifier_; |
| 1295 |
1292 // Manages media players, CDMs, and power save blockers for media. | 1296 // Manages media players, CDMs, and power save blockers for media. |
1293 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 1297 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
1294 | 1298 |
1295 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; | 1299 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; |
1296 | 1300 |
1297 PageImportanceSignals page_importance_signals_; | 1301 PageImportanceSignals page_importance_signals_; |
1298 | 1302 |
1299 bool page_scale_factor_is_one_; | 1303 bool page_scale_factor_is_one_; |
1300 | 1304 |
1301 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1305 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
(...skipping 14 matching lines...) Expand all Loading... |
1316 // Adds/removes a callback called on creation of each new WebContents. | 1320 // Adds/removes a callback called on creation of each new WebContents. |
1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1321 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1322 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1319 | 1323 |
1320 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1324 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1321 }; | 1325 }; |
1322 | 1326 |
1323 } // namespace content | 1327 } // namespace content |
1324 | 1328 |
1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1329 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |