| 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> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/debug/trace_event.h" | 13 #include "base/debug/trace_event.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 18 #include "base/metrics/stats_table.h" | 18 #include "base/metrics/stats_table.h" |
| 19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
| 20 #include "base/string_number_conversions.h" // Temporary | 20 #include "base/string_number_conversions.h" // Temporary |
| 21 #include "base/task.h" | |
| 22 #include "base/threading/thread_local.h" | 21 #include "base/threading/thread_local.h" |
| 23 #include "base/values.h" | 22 #include "base/values.h" |
| 24 #include "base/win/scoped_com_initializer.h" | 23 #include "base/win/scoped_com_initializer.h" |
| 25 #include "content/common/appcache/appcache_dispatcher.h" | 24 #include "content/common/appcache/appcache_dispatcher.h" |
| 26 #include "content/common/child_process_messages.h" | 25 #include "content/common/child_process_messages.h" |
| 27 #include "content/common/database_messages.h" | 26 #include "content/common/database_messages.h" |
| 28 #include "content/common/db_message_filter.h" | 27 #include "content/common/db_message_filter.h" |
| 29 #include "content/common/dom_storage_messages.h" | 28 #include "content/common/dom_storage_messages.h" |
| 30 #include "content/common/gpu/gpu_messages.h" | 29 #include "content/common/gpu/gpu_messages.h" |
| 31 #include "content/common/npobject_util.h" | 30 #include "content/common/npobject_util.h" |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 | 846 |
| 848 scoped_refptr<base::MessageLoopProxy> | 847 scoped_refptr<base::MessageLoopProxy> |
| 849 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 848 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 850 DCHECK(message_loop() == MessageLoop::current()); | 849 DCHECK(message_loop() == MessageLoop::current()); |
| 851 if (!file_thread_.get()) { | 850 if (!file_thread_.get()) { |
| 852 file_thread_.reset(new base::Thread("Renderer::FILE")); | 851 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 853 file_thread_->Start(); | 852 file_thread_->Start(); |
| 854 } | 853 } |
| 855 return file_thread_->message_loop_proxy(); | 854 return file_thread_->message_loop_proxy(); |
| 856 } | 855 } |
| OLD | NEW |