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/nullable_string16.h" | |
19 #include "base/process_util.h" | 18 #include "base/process_util.h" |
20 #include "base/scoped_callback_factory.h" | 19 #include "base/scoped_callback_factory.h" |
21 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
22 #include "base/string_util.h" | 21 #include "base/string_util.h" |
23 #include "base/task.h" | 22 #include "base/task.h" |
24 #include "base/thread_local.h" | 23 #include "base/thread_local.h" |
25 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
26 #include "base/values.h" | 25 #include "base/values.h" |
27 #include "chrome/common/appcache/appcache_dispatcher.h" | 26 #include "chrome/common/appcache/appcache_dispatcher.h" |
28 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 } | 1147 } |
1149 | 1148 |
1150 return false; | 1149 return false; |
1151 } | 1150 } |
1152 | 1151 |
1153 void RenderThread::RegisterExtension(v8::Extension* extension, | 1152 void RenderThread::RegisterExtension(v8::Extension* extension, |
1154 bool restrict_to_extensions) { | 1153 bool restrict_to_extensions) { |
1155 WebScriptController::registerExtension(extension); | 1154 WebScriptController::registerExtension(extension); |
1156 v8_extensions_[extension->name()] = restrict_to_extensions; | 1155 v8_extensions_[extension->name()] = restrict_to_extensions; |
1157 } | 1156 } |
OLD | NEW |