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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 const URLPatternList& host_permissions() const { | 268 const URLPatternList& host_permissions() const { |
269 return host_permissions_; | 269 return host_permissions_; |
270 } | 270 } |
271 | 271 |
272 // Returns true if the extension has the specified API permission. | 272 // Returns true if the extension has the specified API permission. |
273 bool HasApiPermission(const std::string& permission) const { | 273 bool HasApiPermission(const std::string& permission) const { |
274 return std::find(api_permissions_.begin(), api_permissions_.end(), | 274 return std::find(api_permissions_.begin(), api_permissions_.end(), |
275 permission) != api_permissions_.end(); | 275 permission) != api_permissions_.end(); |
276 } | 276 } |
277 | 277 |
error: old chunk mismatch |
None
OLD | NEW |