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

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

Issue 10873038: Replacing WebUIBindings use of CPPBoundClass with v8::Extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changing variable storage to use UTF8 instead of UTF16. Created 8 years, 1 month 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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "content/renderer/media/audio_renderer_mixer_manager.h" 60 #include "content/renderer/media/audio_renderer_mixer_manager.h"
61 #include "content/renderer/media/media_stream_center.h" 61 #include "content/renderer/media/media_stream_center.h"
62 #include "content/renderer/media/media_stream_dependency_factory.h" 62 #include "content/renderer/media/media_stream_dependency_factory.h"
63 #include "content/renderer/media/video_capture_impl_manager.h" 63 #include "content/renderer/media/video_capture_impl_manager.h"
64 #include "content/renderer/media/video_capture_message_filter.h" 64 #include "content/renderer/media/video_capture_message_filter.h"
65 #include "content/renderer/p2p/socket_dispatcher.h" 65 #include "content/renderer/p2p/socket_dispatcher.h"
66 #include "content/renderer/plugin_channel_host.h" 66 #include "content/renderer/plugin_channel_host.h"
67 #include "content/renderer/render_process_impl.h" 67 #include "content/renderer/render_process_impl.h"
68 #include "content/renderer/render_view_impl.h" 68 #include "content/renderer/render_view_impl.h"
69 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 69 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
70 #include "content/renderer/web_ui_extension.h"
70 #include "grit/content_resources.h" 71 #include "grit/content_resources.h"
71 #include "ipc/ipc_channel_handle.h" 72 #include "ipc/ipc_channel_handle.h"
72 #include "ipc/ipc_forwarding_message_filter.h" 73 #include "ipc/ipc_forwarding_message_filter.h"
73 #include "ipc/ipc_platform_file.h" 74 #include "ipc/ipc_platform_file.h"
74 #include "media/base/media.h" 75 #include "media/base/media.h"
75 #include "net/base/net_errors.h" 76 #include "net/base/net_errors.h"
76 #include "net/base/net_util.h" 77 #include "net/base/net_util.h"
77 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" 78 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h"
78 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor t.h" 79 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSuppor t.h"
79 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 80 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 audio_input_message_filter_ = new AudioInputMessageFilter(); 310 audio_input_message_filter_ = new AudioInputMessageFilter();
310 AddFilter(audio_input_message_filter_.get()); 311 AddFilter(audio_input_message_filter_.get());
311 312
312 audio_message_filter_ = new AudioMessageFilter(); 313 audio_message_filter_ = new AudioMessageFilter();
313 AddFilter(audio_message_filter_.get()); 314 AddFilter(audio_message_filter_.get());
314 315
315 AddFilter(new IndexedDBMessageFilter); 316 AddFilter(new IndexedDBMessageFilter);
316 317
317 GetContentClient()->renderer()->RenderThreadStarted(); 318 GetContentClient()->renderer()->RenderThreadStarted();
318 319
320 RegisterExtension(content::WebUIExtension::Get());
321
319 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 322 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
320 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking)) 323 if (command_line.HasSwitch(switches::kEnableGpuBenchmarking))
321 RegisterExtension(GpuBenchmarkingExtension::Get()); 324 RegisterExtension(GpuBenchmarkingExtension::Get());
322 325
323 context_lost_cb_.reset(new GpuVDAContextLostCallback()); 326 context_lost_cb_.reset(new GpuVDAContextLostCallback());
324 327
325 // Note that under Linux, the media library will normally already have 328 // Note that under Linux, the media library will normally already have
326 // been initialized by the Zygote before this instance became a Renderer. 329 // been initialized by the Zygote before this instance became a Renderer.
327 FilePath media_path; 330 FilePath media_path;
328 PathService::Get(DIR_MEDIA_LIBS, &media_path); 331 PathService::Get(DIR_MEDIA_LIBS, &media_path);
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1115 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1113 DCHECK(message_loop() == MessageLoop::current()); 1116 DCHECK(message_loop() == MessageLoop::current());
1114 if (!file_thread_.get()) { 1117 if (!file_thread_.get()) {
1115 file_thread_.reset(new base::Thread("Renderer::FILE")); 1118 file_thread_.reset(new base::Thread("Renderer::FILE"));
1116 file_thread_->Start(); 1119 file_thread_->Start();
1117 } 1120 }
1118 return file_thread_->message_loop_proxy(); 1121 return file_thread_->message_loop_proxy();
1119 } 1122 }
1120 1123
1121 } // namespace content 1124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698