| 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/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 15 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 16 #include "base/metrics/stats_table.h" | 17 #include "base/metrics/stats_table.h" |
| 17 #include "base/nullable_string16.h" | 18 #include "base/nullable_string16.h" |
| 18 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 19 #include "base/shared_memory.h" | 20 #include "base/shared_memory.h" |
| 20 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 21 #include "base/task.h" | 22 #include "base/task.h" |
| 22 #include "base/thread_local.h" | 23 #include "base/thread_local.h" |
| 23 #include "base/trace_event.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/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/plugin_messages.h" | 31 #include "chrome/common/plugin_messages.h" |
| 32 #include "chrome/common/render_messages.h" | 32 #include "chrome/common/render_messages.h" |
| 33 #include "chrome/common/render_messages_params.h" | 33 #include "chrome/common/render_messages_params.h" |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 return false; | 1109 return false; |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 void RenderThread::RegisterExtension(v8::Extension* extension, | 1112 void RenderThread::RegisterExtension(v8::Extension* extension, |
| 1113 bool restrict_to_extensions) { | 1113 bool restrict_to_extensions) { |
| 1114 WebScriptController::registerExtension(extension); | 1114 WebScriptController::registerExtension(extension); |
| 1115 v8_extensions_[extension->name()] = restrict_to_extensions; | 1115 v8_extensions_[extension->name()] = restrict_to_extensions; |
| 1116 } | 1116 } |
| OLD | NEW |