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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 145033004: Convert MemoryBenchmarkingExtension to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "content/renderer/media/audio_renderer_mixer_manager.h" 97 #include "content/renderer/media/audio_renderer_mixer_manager.h"
98 #include "content/renderer/media/media_stream_dependency_factory.h" 98 #include "content/renderer/media/media_stream_dependency_factory.h"
99 #include "content/renderer/media/media_stream_dispatcher.h" 99 #include "content/renderer/media/media_stream_dispatcher.h"
100 #include "content/renderer/media/media_stream_impl.h" 100 #include "content/renderer/media/media_stream_impl.h"
101 #include "content/renderer/media/midi_dispatcher.h" 101 #include "content/renderer/media/midi_dispatcher.h"
102 #include "content/renderer/media/render_media_log.h" 102 #include "content/renderer/media/render_media_log.h"
103 #include "content/renderer/media/video_capture_impl_manager.h" 103 #include "content/renderer/media/video_capture_impl_manager.h"
104 #include "content/renderer/media/webmediaplayer_impl.h" 104 #include "content/renderer/media/webmediaplayer_impl.h"
105 #include "content/renderer/media/webmediaplayer_ms.h" 105 #include "content/renderer/media/webmediaplayer_ms.h"
106 #include "content/renderer/media/webmediaplayer_params.h" 106 #include "content/renderer/media/webmediaplayer_params.h"
107 #include "content/renderer/memory_benchmarking_extension.h"
107 #include "content/renderer/mhtml_generator.h" 108 #include "content/renderer/mhtml_generator.h"
108 #include "content/renderer/notification_provider.h" 109 #include "content/renderer/notification_provider.h"
109 #include "content/renderer/render_frame_impl.h" 110 #include "content/renderer/render_frame_impl.h"
110 #include "content/renderer/render_process.h" 111 #include "content/renderer/render_process.h"
111 #include "content/renderer/render_thread_impl.h" 112 #include "content/renderer/render_thread_impl.h"
112 #include "content/renderer/render_view_impl_params.h" 113 #include "content/renderer/render_view_impl_params.h"
113 #include "content/renderer/render_view_mouse_lock_dispatcher.h" 114 #include "content/renderer/render_view_mouse_lock_dispatcher.h"
114 #include "content/renderer/render_widget_fullscreen_pepper.h" 115 #include "content/renderer/render_widget_fullscreen_pepper.h"
115 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 116 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
116 #include "content/renderer/renderer_webcolorchooser_impl.h" 117 #include "content/renderer/renderer_webcolorchooser_impl.h"
(...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after
3644 if (enabled_bindings_ & BINDINGS_POLICY_DOM_AUTOMATION) 3645 if (enabled_bindings_ & BINDINGS_POLICY_DOM_AUTOMATION)
3645 DomAutomationController::Install(this, frame); 3646 DomAutomationController::Install(this, frame);
3646 3647
3647 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION) 3648 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION)
3648 StatsCollectionController::Install(frame); 3649 StatsCollectionController::Install(frame);
3649 3650
3650 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 3651 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
3651 3652
3652 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking)) 3653 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking))
3653 SkiaBenchmarking::Install(frame); 3654 SkiaBenchmarking::Install(frame);
3655
3656 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
3657 MemoryBenchmarkingExtension::Install(frame);
3654 } 3658 }
3655 3659
3656 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) { 3660 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) {
3657 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 3661 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
3658 DidCreateDocumentElement(frame)); 3662 DidCreateDocumentElement(frame));
3659 } 3663 }
3660 3664
3661 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title, 3665 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title,
3662 WebTextDirection direction) { 3666 WebTextDirection direction) {
3663 UpdateTitle(frame, title, direction); 3667 UpdateTitle(frame, title, direction);
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
6237 for (size_t i = 0; i < icon_urls.size(); i++) { 6241 for (size_t i = 0; i < icon_urls.size(); i++) {
6238 WebURL url = icon_urls[i].iconURL(); 6242 WebURL url = icon_urls[i].iconURL();
6239 if (!url.isEmpty()) 6243 if (!url.isEmpty())
6240 urls.push_back(FaviconURL(url, 6244 urls.push_back(FaviconURL(url,
6241 ToFaviconType(icon_urls[i].iconType()))); 6245 ToFaviconType(icon_urls[i].iconType())));
6242 } 6246 }
6243 SendUpdateFaviconURL(urls); 6247 SendUpdateFaviconURL(urls);
6244 } 6248 }
6245 6249
6246 } // namespace content 6250 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698