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

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

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just comments / minor restructuring (trybots previous) Created 4 years, 12 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/containers/scoped_ptr_hash_map.h" 13 #include "base/containers/scoped_ptr_hash_map.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/process/process.h" 17 #include "base/process/process.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "content/browser/frame_host/frame_tree.h" 19 #include "content/browser/frame_host/frame_tree.h"
20 #include "content/browser/frame_host/navigation_controller_delegate.h" 20 #include "content/browser/frame_host/navigation_controller_delegate.h"
21 #include "content/browser/frame_host/navigation_controller_impl.h" 21 #include "content/browser/frame_host/navigation_controller_impl.h"
22 #include "content/browser/frame_host/navigator_delegate.h" 22 #include "content/browser/frame_host/navigator_delegate.h"
23 #include "content/browser/frame_host/render_frame_host_delegate.h" 23 #include "content/browser/frame_host/render_frame_host_delegate.h"
24 #include "content/browser/frame_host/render_frame_host_manager.h" 24 #include "content/browser/frame_host/render_frame_host_manager.h"
25 #include "content/browser/loader/loader_io_thread_notifier.h"
25 #include "content/browser/media/audio_stream_monitor.h" 26 #include "content/browser/media/audio_stream_monitor.h"
26 #include "content/browser/renderer_host/render_view_host_delegate.h" 27 #include "content/browser/renderer_host/render_view_host_delegate.h"
27 #include "content/browser/renderer_host/render_view_host_impl.h" 28 #include "content/browser/renderer_host/render_view_host_impl.h"
28 #include "content/browser/renderer_host/render_widget_host_delegate.h" 29 #include "content/browser/renderer_host/render_widget_host_delegate.h"
29 #include "content/common/accessibility_mode_enums.h" 30 #include "content/common/accessibility_mode_enums.h"
30 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
31 #include "content/public/browser/color_chooser.h" 32 #include "content/public/browser/color_chooser.h"
32 #include "content/public/browser/notification_observer.h" 33 #include "content/public/browser/notification_observer.h"
33 #include "content/public/browser/notification_registrar.h" 34 #include "content/public/browser/notification_registrar.h"
34 #include "content/public/browser/web_contents.h" 35 #include "content/public/browser/web_contents.h"
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 AccessibilityMode accessibility_mode_; 1279 AccessibilityMode accessibility_mode_;
1279 1280
1280 // Monitors power levels for audio streams associated with this WebContents. 1281 // Monitors power levels for audio streams associated with this WebContents.
1281 AudioStreamMonitor audio_stream_monitor_; 1282 AudioStreamMonitor audio_stream_monitor_;
1282 1283
1283 // Created on-demand to mute all audio output from this WebContents. 1284 // Created on-demand to mute all audio output from this WebContents.
1284 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1285 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1285 1286
1286 bool virtual_keyboard_requested_; 1287 bool virtual_keyboard_requested_;
1287 1288
1289 // Notifies ResourceDispatcherHostImpl of various events related to loading.
1290 scoped_ptr<LoaderIOThreadNotifer> loader_io_thread_notifier_;
1291
1288 // Manages media players, CDMs, and power save blockers for media. 1292 // Manages media players, CDMs, and power save blockers for media.
1289 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; 1293 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_;
1290 1294
1291 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; 1295 scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
1292 1296
1293 PageImportanceSignals page_importance_signals_; 1297 PageImportanceSignals page_importance_signals_;
1294 1298
1295 bool page_scale_factor_is_one_; 1299 bool page_scale_factor_is_one_;
1296 1300
1297 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1301 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
(...skipping 14 matching lines...) Expand all
1312 // Adds/removes a callback called on creation of each new WebContents. 1316 // Adds/removes a callback called on creation of each new WebContents.
1313 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1314 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1315 1319
1316 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1320 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1317 }; 1321 };
1318 1322
1319 } // namespace content 1323 } // namespace content
1320 1324
1321 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698