| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "chrome/renderer/render_view_visitor.h" | 62 #include "chrome/renderer/render_view_visitor.h" |
| 63 #include "chrome/renderer/renderer_histogram_snapshots.h" | 63 #include "chrome/renderer/renderer_histogram_snapshots.h" |
| 64 #include "chrome/renderer/renderer_webidbfactory_impl.h" | 64 #include "chrome/renderer/renderer_webidbfactory_impl.h" |
| 65 #include "chrome/renderer/renderer_webkitclient_impl.h" | 65 #include "chrome/renderer/renderer_webkitclient_impl.h" |
| 66 #include "chrome/renderer/spellchecker/spellcheck.h" | 66 #include "chrome/renderer/spellchecker/spellcheck.h" |
| 67 #include "chrome/renderer/user_script_slave.h" | 67 #include "chrome/renderer/user_script_slave.h" |
| 68 #include "ipc/ipc_channel_handle.h" | 68 #include "ipc/ipc_channel_handle.h" |
| 69 #include "ipc/ipc_message.h" | 69 #include "ipc/ipc_message.h" |
| 70 #include "ipc/ipc_platform_file.h" | 70 #include "ipc/ipc_platform_file.h" |
| 71 #include "net/base/net_util.h" | 71 #include "net/base/net_util.h" |
| 72 #include "third_party/sqlite/preprocessed/sqlite3.h" | 72 #include "third_party/sqlite/sqlite3.h" |
| 73 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" | 73 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" |
| 74 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" | 74 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" |
| 75 #include "third_party/WebKit/WebKit/chromium/public/WebColor.h" | 75 #include "third_party/WebKit/WebKit/chromium/public/WebColor.h" |
| 76 #include "third_party/WebKit/WebKit/chromium/public/WebCrossOriginPreflightResul
tCache.h" | 76 #include "third_party/WebKit/WebKit/chromium/public/WebCrossOriginPreflightResul
tCache.h" |
| 77 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" | 77 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" |
| 78 #include "third_party/WebKit/WebKit/chromium/public/WebFontCache.h" | 78 #include "third_party/WebKit/WebKit/chromium/public/WebFontCache.h" |
| 79 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 79 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 80 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" | 80 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
| 81 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h" | 81 #include "third_party/WebKit/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 82 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h" | 82 #include "third_party/WebKit/WebKit/chromium/public/WebScriptController.h" |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 std::string RenderThread::GetExtensionIdByBrowseExtent(const GURL& url) { | 1091 std::string RenderThread::GetExtensionIdByBrowseExtent(const GURL& url) { |
| 1092 for (size_t i = 0; i < extension_extents_.size(); ++i) { | 1092 for (size_t i = 0; i < extension_extents_.size(); ++i) { |
| 1093 if (extension_extents_[i].browse_extent.ContainsURL(url)) | 1093 if (extension_extents_[i].browse_extent.ContainsURL(url)) |
| 1094 return extension_extents_[i].extension_id; | 1094 return extension_extents_[i].extension_id; |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 return std::string(); | 1097 return std::string(); |
| 1098 } | 1098 } |
| OLD | NEW |