OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_thread.h" | 5 #include "chrome/renderer/render_thread.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 13 matching lines...) Expand all Loading... |
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 "chrome/common/appcache/appcache_dispatcher.h" | 26 #include "chrome/common/appcache/appcache_dispatcher.h" |
27 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "chrome/common/db_message_filter.h" | 29 #include "chrome/common/db_message_filter.h" |
30 #include "chrome/common/dom_storage_common.h" | 30 #include "chrome/common/dom_storage_common.h" |
31 #include "chrome/common/extensions/extension_extent.h" | 31 #include "chrome/common/extensions/extension_extent.h" |
32 #include "chrome/common/plugin_messages.h" | 32 #include "chrome/common/plugin_messages.h" |
33 #include "chrome/common/render_messages.h" | 33 #include "chrome/common/render_messages.h" |
| 34 #include "chrome/common/render_messages_params.h" |
34 #include "chrome/common/renderer_preferences.h" | 35 #include "chrome/common/renderer_preferences.h" |
35 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
36 #include "chrome/common/web_database_observer_impl.h" | 37 #include "chrome/common/web_database_observer_impl.h" |
37 #include "chrome/plugin/npobject_util.h" | 38 #include "chrome/plugin/npobject_util.h" |
38 // TODO(port) | 39 // TODO(port) |
39 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
40 #include "chrome/plugin/plugin_channel.h" | 41 #include "chrome/plugin/plugin_channel.h" |
41 #else | 42 #else |
42 #include "base/scoped_handle.h" | 43 #include "base/scoped_handle.h" |
43 #include "chrome/plugin/plugin_channel_base.h" | 44 #include "chrome/plugin/plugin_channel_base.h" |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 | 1108 |
1108 scoped_refptr<base::MessageLoopProxy> | 1109 scoped_refptr<base::MessageLoopProxy> |
1109 RenderThread::GetFileThreadMessageLoopProxy() { | 1110 RenderThread::GetFileThreadMessageLoopProxy() { |
1110 DCHECK(message_loop() == MessageLoop::current()); | 1111 DCHECK(message_loop() == MessageLoop::current()); |
1111 if (!file_thread_.get()) { | 1112 if (!file_thread_.get()) { |
1112 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1113 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1113 file_thread_->Start(); | 1114 file_thread_->Start(); |
1114 } | 1115 } |
1115 return file_thread_->message_loop_proxy(); | 1116 return file_thread_->message_loop_proxy(); |
1116 } | 1117 } |
OLD | NEW |