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

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

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: while -> for Created 4 years, 4 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "content/browser/find_request_manager.h" 45 #include "content/browser/find_request_manager.h"
46 #include "content/browser/frame_host/cross_process_frame_connector.h" 46 #include "content/browser/frame_host/cross_process_frame_connector.h"
47 #include "content/browser/frame_host/interstitial_page_impl.h" 47 #include "content/browser/frame_host/interstitial_page_impl.h"
48 #include "content/browser/frame_host/navigation_entry_impl.h" 48 #include "content/browser/frame_host/navigation_entry_impl.h"
49 #include "content/browser/frame_host/navigation_handle_impl.h" 49 #include "content/browser/frame_host/navigation_handle_impl.h"
50 #include "content/browser/frame_host/navigator_impl.h" 50 #include "content/browser/frame_host/navigator_impl.h"
51 #include "content/browser/frame_host/render_frame_host_impl.h" 51 #include "content/browser/frame_host/render_frame_host_impl.h"
52 #include "content/browser/frame_host/render_frame_proxy_host.h" 52 #include "content/browser/frame_host/render_frame_proxy_host.h"
53 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 53 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
54 #include "content/browser/host_zoom_map_impl.h" 54 #include "content/browser/host_zoom_map_impl.h"
55 #include "content/browser/loader/content_size_frame_counter.h"
55 #include "content/browser/loader/loader_io_thread_notifier.h" 56 #include "content/browser/loader/loader_io_thread_notifier.h"
56 #include "content/browser/loader/resource_dispatcher_host_impl.h" 57 #include "content/browser/loader/resource_dispatcher_host_impl.h"
57 #include "content/browser/manifest/manifest_manager_host.h" 58 #include "content/browser/manifest/manifest_manager_host.h"
58 #include "content/browser/media/audio_stream_monitor.h" 59 #include "content/browser/media/audio_stream_monitor.h"
59 #include "content/browser/media/capture/web_contents_audio_muter.h" 60 #include "content/browser/media/capture/web_contents_audio_muter.h"
60 #include "content/browser/media/media_web_contents_observer.h" 61 #include "content/browser/media/media_web_contents_observer.h"
61 #include "content/browser/media/session/media_session.h" 62 #include "content/browser/media/session/media_session.h"
62 #include "content/browser/message_port_message_filter.h" 63 #include "content/browser/message_port_message_filter.h"
63 #include "content/browser/plugin_content_origin_whitelist.h" 64 #include "content/browser/plugin_content_origin_whitelist.h"
64 #include "content/browser/renderer_host/render_process_host_impl.h" 65 #include "content/browser/renderer_host/render_process_host_impl.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 base::Unretained(this))); 447 base::Unretained(this)));
447 #if defined(OS_ANDROID) 448 #if defined(OS_ANDROID)
448 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this)); 449 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this));
449 #else 450 #else
450 media_web_contents_observer_.reset(new MediaWebContentsObserver(this)); 451 media_web_contents_observer_.reset(new MediaWebContentsObserver(this));
451 #endif 452 #endif
452 #if defined (ENABLE_PLUGINS) 453 #if defined (ENABLE_PLUGINS)
453 pepper_playback_observer_.reset(new PepperPlaybackObserver(this)); 454 pepper_playback_observer_.reset(new PepperPlaybackObserver(this));
454 #endif 455 #endif
455 loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this)); 456 loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this));
457 content_size_frame_counter_.reset(new ContentSizeFrameCounter(this));
456 wake_lock_service_context_.reset(new WakeLockServiceContext(this)); 458 wake_lock_service_context_.reset(new WakeLockServiceContext(this));
457 } 459 }
458 460
459 WebContentsImpl::~WebContentsImpl() { 461 WebContentsImpl::~WebContentsImpl() {
460 is_being_destroyed_ = true; 462 is_being_destroyed_ = true;
461 463
462 rwh_input_event_router_.reset(); 464 rwh_input_event_router_.reset();
463 465
464 WebContentsImpl* outermost = GetOutermostWebContents(); 466 WebContentsImpl* outermost = GetOutermostWebContents();
465 if (GetFocusedWebContents() == this && this != outermost) { 467 if (GetFocusedWebContents() == this && this != outermost) {
(...skipping 4766 matching lines...) Expand 10 before | Expand all | Expand 10 after
5232 for (RenderViewHost* render_view_host : render_view_host_set) 5234 for (RenderViewHost* render_view_host : render_view_host_set)
5233 render_view_host->OnWebkitPreferencesChanged(); 5235 render_view_host->OnWebkitPreferencesChanged();
5234 } 5236 }
5235 5237
5236 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5238 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5237 JavaScriptDialogManager* dialog_manager) { 5239 JavaScriptDialogManager* dialog_manager) {
5238 dialog_manager_ = dialog_manager; 5240 dialog_manager_ = dialog_manager;
5239 } 5241 }
5240 5242
5241 } // namespace content 5243 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698