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> |
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/stats_table.h" | 17 #include "base/metrics/stats_table.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/scoped_callback_factory.h" | 19 #include "base/scoped_callback_factory.h" |
20 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
22 #include "base/task.h" | 22 #include "base/task.h" |
23 #include "base/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 "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/database_messages.h" | 29 #include "chrome/common/database_messages.h" |
30 #include "chrome/common/db_message_filter.h" | 30 #include "chrome/common/db_message_filter.h" |
31 #include "chrome/common/dom_storage_messages.h" | 31 #include "chrome/common/dom_storage_messages.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" |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 } | 1150 } |
1151 | 1151 |
1152 return false; | 1152 return false; |
1153 } | 1153 } |
1154 | 1154 |
1155 void RenderThread::RegisterExtension(v8::Extension* extension, | 1155 void RenderThread::RegisterExtension(v8::Extension* extension, |
1156 bool restrict_to_extensions) { | 1156 bool restrict_to_extensions) { |
1157 WebScriptController::registerExtension(extension); | 1157 WebScriptController::registerExtension(extension); |
1158 v8_extensions_[extension->name()] = restrict_to_extensions; | 1158 v8_extensions_[extension->name()] = restrict_to_extensions; |
1159 } | 1159 } |
OLD | NEW |