OLD | NEW |
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "content/renderer/plugin_channel_host.h" | 54 #include "content/renderer/plugin_channel_host.h" |
55 #include "content/renderer/render_process_impl.h" | 55 #include "content/renderer/render_process_impl.h" |
56 #include "content/renderer/render_view_impl.h" | 56 #include "content/renderer/render_view_impl.h" |
57 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 57 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
58 #include "grit/content_resources.h" | 58 #include "grit/content_resources.h" |
59 #include "ipc/ipc_channel_handle.h" | 59 #include "ipc/ipc_channel_handle.h" |
60 #include "ipc/ipc_platform_file.h" | 60 #include "ipc/ipc_platform_file.h" |
61 #include "media/base/media.h" | 61 #include "media/base/media.h" |
62 #include "net/base/net_errors.h" | 62 #include "net/base/net_errors.h" |
63 #include "net/base/net_util.h" | 63 #include "net/base/net_util.h" |
64 #include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h" | 64 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" |
65 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" | 65 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" |
66 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" | 66 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" |
67 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 67 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
68 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 68 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
69 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 69 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
70 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 70 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
71 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" | 71 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" |
72 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 72 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
73 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 73 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
74 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" | 74 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 | 975 |
976 scoped_refptr<base::MessageLoopProxy> | 976 scoped_refptr<base::MessageLoopProxy> |
977 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 977 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
978 DCHECK(message_loop() == MessageLoop::current()); | 978 DCHECK(message_loop() == MessageLoop::current()); |
979 if (!file_thread_.get()) { | 979 if (!file_thread_.get()) { |
980 file_thread_.reset(new base::Thread("Renderer::FILE")); | 980 file_thread_.reset(new base::Thread("Renderer::FILE")); |
981 file_thread_->Start(); | 981 file_thread_->Start(); |
982 } | 982 } |
983 return file_thread_->message_loop_proxy(); | 983 return file_thread_->message_loop_proxy(); |
984 } | 984 } |
OLD | NEW |