| 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/field_trial.h" | 13 #include "base/field_trial.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/nullable_string16.h" | 16 #include "base/nullable_string16.h" |
| 17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 18 #include "base/shared_memory.h" | 18 #include "base/shared_memory.h" |
| 19 #include "base/stats_table.h" | 19 #include "base/stats_table.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/task.h" | 21 #include "base/task.h" |
| 22 #include "base/thread_local.h" | 22 #include "base/thread_local.h" |
| 23 #include "base/trace_event.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 "chrome/common/appcache/appcache_dispatcher.h" | 26 #include "chrome/common/appcache/appcache_dispatcher.h" |
| 26 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
| 27 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/db_message_filter.h" | 29 #include "chrome/common/db_message_filter.h" |
| 29 #include "chrome/common/dom_storage_common.h" | 30 #include "chrome/common/dom_storage_common.h" |
| 30 #include "chrome/common/extensions/extension_extent.h" | 31 #include "chrome/common/extensions/extension_extent.h" |
| 31 #include "chrome/common/plugin_messages.h" | 32 #include "chrome/common/plugin_messages.h" |
| 32 #include "chrome/common/render_messages.h" | 33 #include "chrome/common/render_messages.h" |
| 33 #include "chrome/common/renderer_preferences.h" | 34 #include "chrome/common/renderer_preferences.h" |
| 34 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 } | 1089 } |
| 1089 | 1090 |
| 1090 std::string RenderThread::GetExtensionIdByBrowseExtent(const GURL& url) { | 1091 std::string RenderThread::GetExtensionIdByBrowseExtent(const GURL& url) { |
| 1091 for (size_t i = 0; i < extension_extents_.size(); ++i) { | 1092 for (size_t i = 0; i < extension_extents_.size(); ++i) { |
| 1092 if (extension_extents_[i].browse_extent.ContainsURL(url)) | 1093 if (extension_extents_[i].browse_extent.ContainsURL(url)) |
| 1093 return extension_extents_[i].extension_id; | 1094 return extension_extents_[i].extension_id; |
| 1094 } | 1095 } |
| 1095 | 1096 |
| 1096 return std::string(); | 1097 return std::string(); |
| 1097 } | 1098 } |
| OLD | NEW |