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

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

Issue 142143005: Convert the SkiaBenchmarkingExtension to a gin::Wrappable class (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') | content/renderer/skia_benchmarking_extension.h » ('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/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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "content/renderer/render_frame_impl.h" 109 #include "content/renderer/render_frame_impl.h"
110 #include "content/renderer/render_process.h" 110 #include "content/renderer/render_process.h"
111 #include "content/renderer/render_thread_impl.h" 111 #include "content/renderer/render_thread_impl.h"
112 #include "content/renderer/render_view_impl_params.h" 112 #include "content/renderer/render_view_impl_params.h"
113 #include "content/renderer/render_view_mouse_lock_dispatcher.h" 113 #include "content/renderer/render_view_mouse_lock_dispatcher.h"
114 #include "content/renderer/render_widget_fullscreen_pepper.h" 114 #include "content/renderer/render_widget_fullscreen_pepper.h"
115 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 115 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
116 #include "content/renderer/renderer_webcolorchooser_impl.h" 116 #include "content/renderer/renderer_webcolorchooser_impl.h"
117 #include "content/renderer/resizing_mode_selector.h" 117 #include "content/renderer/resizing_mode_selector.h"
118 #include "content/renderer/savable_resources.h" 118 #include "content/renderer/savable_resources.h"
119 #include "content/renderer/skia_benchmarking_extension.h"
119 #include "content/renderer/speech_recognition_dispatcher.h" 120 #include "content/renderer/speech_recognition_dispatcher.h"
120 #include "content/renderer/stats_collection_controller.h" 121 #include "content/renderer/stats_collection_controller.h"
121 #include "content/renderer/stats_collection_observer.h" 122 #include "content/renderer/stats_collection_observer.h"
122 #include "content/renderer/text_input_client_observer.h" 123 #include "content/renderer/text_input_client_observer.h"
123 #include "content/renderer/v8_value_converter_impl.h" 124 #include "content/renderer/v8_value_converter_impl.h"
124 #include "content/renderer/web_ui_extension.h" 125 #include "content/renderer/web_ui_extension.h"
125 #include "content/renderer/web_ui_extension_data.h" 126 #include "content/renderer/web_ui_extension_data.h"
126 #include "content/renderer/websharedworker_proxy.h" 127 #include "content/renderer/websharedworker_proxy.h"
127 #include "media/audio/audio_output_device.h" 128 #include "media/audio/audio_output_device.h"
128 #include "media/base/audio_renderer_mixer_input.h" 129 #include "media/base/audio_renderer_mixer_input.h"
(...skipping 3509 matching lines...) Expand 10 before | Expand all | Expand 10 after
3638 3639
3639 // Only install controllers into the main world. 3640 // Only install controllers into the main world.
3640 if (world_id) 3641 if (world_id)
3641 return; 3642 return;
3642 3643
3643 if (enabled_bindings_ & BINDINGS_POLICY_DOM_AUTOMATION) 3644 if (enabled_bindings_ & BINDINGS_POLICY_DOM_AUTOMATION)
3644 DomAutomationController::Install(this, frame); 3645 DomAutomationController::Install(this, frame);
3645 3646
3646 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION) 3647 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION)
3647 StatsCollectionController::Install(frame); 3648 StatsCollectionController::Install(frame);
3649
3650 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
3651
3652 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking))
3653 SkiaBenchmarking::Install(frame);
3648 } 3654 }
3649 3655
3650 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) { 3656 void RenderViewImpl::didCreateDocumentElement(WebFrame* frame) {
3651 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 3657 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
3652 DidCreateDocumentElement(frame)); 3658 DidCreateDocumentElement(frame));
3653 } 3659 }
3654 3660
3655 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title, 3661 void RenderViewImpl::didReceiveTitle(WebFrame* frame, const WebString& title,
3656 WebTextDirection direction) { 3662 WebTextDirection direction) {
3657 UpdateTitle(frame, title, direction); 3663 UpdateTitle(frame, title, direction);
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after
6231 for (size_t i = 0; i < icon_urls.size(); i++) { 6237 for (size_t i = 0; i < icon_urls.size(); i++) {
6232 WebURL url = icon_urls[i].iconURL(); 6238 WebURL url = icon_urls[i].iconURL();
6233 if (!url.isEmpty()) 6239 if (!url.isEmpty())
6234 urls.push_back(FaviconURL(url, 6240 urls.push_back(FaviconURL(url,
6235 ToFaviconType(icon_urls[i].iconType()))); 6241 ToFaviconType(icon_urls[i].iconType())));
6236 } 6242 }
6237 SendUpdateFaviconURL(urls); 6243 SendUpdateFaviconURL(urls);
6238 } 6244 }
6239 6245
6240 } // namespace content 6246 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/skia_benchmarking_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698