| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/extensions/extension_set.h" | 5 #include "extensions/common/extension_set.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "chrome/common/url_constants.h" | |
| 11 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
| 12 #include "extensions/common/extension.h" | 11 #include "extensions/common/extension.h" |
| 13 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" | 12 #include "extensions/common/manifest_handlers/sandboxed_page_info.h" |
| 14 | 13 |
| 15 using extensions::Extension; | 14 using extensions::Extension; |
| 16 | 15 |
| 17 ExtensionSet::const_iterator::const_iterator() {} | 16 ExtensionSet::const_iterator::const_iterator() {} |
| 18 | 17 |
| 19 ExtensionSet::const_iterator::const_iterator(const const_iterator& other) | 18 ExtensionSet::const_iterator::const_iterator(const const_iterator& other) |
| 20 : it_(other.it_) { | 19 : it_(other.it_) { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 137 |
| 139 ExtensionMap::const_iterator i = extensions_.begin(); | 138 ExtensionMap::const_iterator i = extensions_.begin(); |
| 140 for (; i != extensions_.end(); ++i) { | 139 for (; i != extensions_.end(); ++i) { |
| 141 if (i->second->location() == extensions::Manifest::COMPONENT && | 140 if (i->second->location() == extensions::Manifest::COMPONENT && |
| 142 i->second->web_extent().MatchesURL(url)) | 141 i->second->web_extent().MatchesURL(url)) |
| 143 return true; | 142 return true; |
| 144 } | 143 } |
| 145 | 144 |
| 146 return false; | 145 return false; |
| 147 } | 146 } |
| OLD | NEW |