| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 12 matching lines...) Expand all Loading... |
| 23 #include "base/values.h" | 23 #include "base/values.h" |
| 24 #include "base/win/scoped_com_initializer.h" | 24 #include "base/win/scoped_com_initializer.h" |
| 25 #include "content/common/appcache/appcache_dispatcher.h" | 25 #include "content/common/appcache/appcache_dispatcher.h" |
| 26 #include "content/common/child_process_messages.h" | 26 #include "content/common/child_process_messages.h" |
| 27 #include "content/common/database_messages.h" | 27 #include "content/common/database_messages.h" |
| 28 #include "content/common/db_message_filter.h" | 28 #include "content/common/db_message_filter.h" |
| 29 #include "content/common/dom_storage_messages.h" | 29 #include "content/common/dom_storage_messages.h" |
| 30 #include "content/common/gpu/gpu_messages.h" | 30 #include "content/common/gpu/gpu_messages.h" |
| 31 #include "content/common/npobject_util.h" | 31 #include "content/common/npobject_util.h" |
| 32 #include "content/common/plugin_messages.h" | 32 #include "content/common/plugin_messages.h" |
| 33 #include "content/common/renderer_preferences.h" | |
| 34 #include "content/common/resource_dispatcher.h" | 33 #include "content/common/resource_dispatcher.h" |
| 35 #include "content/common/resource_messages.h" | 34 #include "content/common/resource_messages.h" |
| 36 #include "content/common/view_messages.h" | 35 #include "content/common/view_messages.h" |
| 37 #include "content/common/web_database_observer_impl.h" | 36 #include "content/common/web_database_observer_impl.h" |
| 38 #include "content/public/common/content_switches.h" | 37 #include "content/public/common/content_switches.h" |
| 38 #include "content/public/common/renderer_preferences.h" |
| 39 #include "content/public/renderer/content_renderer_client.h" | 39 #include "content/public/renderer/content_renderer_client.h" |
| 40 #include "content/public/renderer/render_process_observer.h" | 40 #include "content/public/renderer/render_process_observer.h" |
| 41 #include "content/public/renderer/render_view_visitor.h" | 41 #include "content/public/renderer/render_view_visitor.h" |
| 42 #include "content/renderer/devtools_agent_filter.h" | 42 #include "content/renderer/devtools_agent_filter.h" |
| 43 #include "content/renderer/gpu/compositor_thread.h" | 43 #include "content/renderer/gpu/compositor_thread.h" |
| 44 #include "content/renderer/gpu/gpu_channel_host.h" | 44 #include "content/renderer/gpu/gpu_channel_host.h" |
| 45 #include "content/renderer/indexed_db_dispatcher.h" | 45 #include "content/renderer/indexed_db_dispatcher.h" |
| 46 #include "content/renderer/media/audio_input_message_filter.h" | 46 #include "content/renderer/media/audio_input_message_filter.h" |
| 47 #include "content/renderer/media/audio_message_filter.h" | 47 #include "content/renderer/media/audio_message_filter.h" |
| 48 #include "content/renderer/media/video_capture_impl_manager.h" | 48 #include "content/renderer/media/video_capture_impl_manager.h" |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 | 782 |
| 783 scoped_refptr<base::MessageLoopProxy> | 783 scoped_refptr<base::MessageLoopProxy> |
| 784 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 784 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 785 DCHECK(message_loop() == MessageLoop::current()); | 785 DCHECK(message_loop() == MessageLoop::current()); |
| 786 if (!file_thread_.get()) { | 786 if (!file_thread_.get()) { |
| 787 file_thread_.reset(new base::Thread("Renderer::FILE")); | 787 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 788 file_thread_->Start(); | 788 file_thread_->Start(); |
| 789 } | 789 } |
| 790 return file_thread_->message_loop_proxy(); | 790 return file_thread_->message_loop_proxy(); |
| 791 } | 791 } |
| OLD | NEW |