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

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

Issue 10990079: Clean up scoped_com_initializer.h. Remove #ifdefs for non-Windows (this is in base/win, no one sho… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
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>
11 11
12 #include "base/allocator/allocator_extension.h" 12 #include "base/allocator/allocator_extension.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/debug/trace_event.h" 14 #include "base/debug/trace_event.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/metrics/field_trial.h" 17 #include "base/metrics/field_trial.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/metrics/stats_table.h" 19 #include "base/metrics/stats_table.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/shared_memory.h" 21 #include "base/shared_memory.h"
22 #include "base/string_number_conversions.h" // Temporary 22 #include "base/string_number_conversions.h" // Temporary
23 #include "base/threading/thread_local.h" 23 #include "base/threading/thread_local.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/values.h" 25 #include "base/values.h"
26 #include "base/win/scoped_com_initializer.h"
27 #include "content/common/appcache/appcache_dispatcher.h" 26 #include "content/common/appcache/appcache_dispatcher.h"
28 #include "content/common/child_histogram_message_filter.h" 27 #include "content/common/child_histogram_message_filter.h"
29 #include "content/common/child_process_messages.h" 28 #include "content/common/child_process_messages.h"
30 #include "content/common/database_messages.h" 29 #include "content/common/database_messages.h"
31 #include "content/common/db_message_filter.h" 30 #include "content/common/db_message_filter.h"
32 #include "content/common/dom_storage_messages.h" 31 #include "content/common/dom_storage_messages.h"
33 #include "content/common/gpu/client/gpu_channel_host.h" 32 #include "content/common/gpu/client/gpu_channel_host.h"
34 #include "content/common/gpu/gpu_messages.h" 33 #include "content/common/gpu/gpu_messages.h"
35 #include "content/common/indexed_db/indexed_db_dispatcher.h" 34 #include "content/common/indexed_db/indexed_db_dispatcher.h"
36 #include "content/common/indexed_db/indexed_db_message_filter.h" 35 #include "content/common/indexed_db/indexed_db_message_filter.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h"
91 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 90 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
92 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h " 91 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h "
93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 92 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
95 #include "ui/base/layout.h" 94 #include "ui/base/layout.h"
96 #include "ui/base/ui_base_switches.h" 95 #include "ui/base/ui_base_switches.h"
97 #include "v8/include/v8.h" 96 #include "v8/include/v8.h"
98 #include "webkit/glue/webkit_glue.h" 97 #include "webkit/glue/webkit_glue.h"
99 98
100 // TODO(port)
101 #if !defined(OS_WIN)
102 #include "base/memory/scoped_handle.h"
103 #include "content/common/np_channel_base.h"
104 #endif
105
106 #if defined(OS_WIN) 99 #if defined(OS_WIN)
107 #include <windows.h> 100 #include <windows.h>
108 #include <objbase.h> 101 #include <objbase.h>
102 #include "base/win/scoped_com_initializer.h"
103 #else
104 // TODO(port)
105 #include "base/memory/scoped_handle.h"
106 #include "content/common/np_channel_base.h"
109 #endif 107 #endif
110 108
111 #if defined(OS_POSIX) 109 #if defined(OS_POSIX)
112 #include "ipc/ipc_channel_posix.h" 110 #include "ipc/ipc_channel_posix.h"
113 #endif 111 #endif
114 112
115 using WebKit::WebDocument; 113 using WebKit::WebDocument;
116 using WebKit::WebFrame; 114 using WebKit::WebFrame;
117 using WebKit::WebNetworkStateNotifier; 115 using WebKit::WebNetworkStateNotifier;
118 using WebKit::WebRuntimeFeatures; 116 using WebKit::WebRuntimeFeatures;
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 1144
1147 scoped_refptr<base::MessageLoopProxy> 1145 scoped_refptr<base::MessageLoopProxy>
1148 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1146 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1149 DCHECK(message_loop() == MessageLoop::current()); 1147 DCHECK(message_loop() == MessageLoop::current());
1150 if (!file_thread_.get()) { 1148 if (!file_thread_.get()) {
1151 file_thread_.reset(new base::Thread("Renderer::FILE")); 1149 file_thread_.reset(new base::Thread("Renderer::FILE"));
1152 file_thread_->Start(); 1150 file_thread_->Start();
1153 } 1151 }
1154 return file_thread_->message_loop_proxy(); 1152 return file_thread_->message_loop_proxy();
1155 } 1153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698