| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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.h" | 5 #include "chrome/common/extensions/extension.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 } | 1322 } |
| 1323 | 1323 |
| 1324 void Extension::AddWebExtentPattern(const URLPattern& pattern) { | 1324 void Extension::AddWebExtentPattern(const URLPattern& pattern) { |
| 1325 extent_.AddPattern(pattern); | 1325 extent_.AddPattern(pattern); |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 bool Extension::is_theme() const { | 1328 bool Extension::is_theme() const { |
| 1329 return manifest()->is_theme(); | 1329 return manifest()->is_theme(); |
| 1330 } | 1330 } |
| 1331 | 1331 |
| 1332 bool Extension::is_content_pack() const { |
| 1333 return manifest()->HasKey(keys::kContentPack); |
| 1334 } |
| 1335 |
| 1332 ExtensionResource Extension::GetContentPackSiteList() const { | 1336 ExtensionResource Extension::GetContentPackSiteList() const { |
| 1333 if (content_pack_site_list_.empty()) | 1337 if (content_pack_site_list_.empty()) |
| 1334 return ExtensionResource(); | 1338 return ExtensionResource(); |
| 1335 | 1339 |
| 1336 return GetResource(content_pack_site_list_); | 1340 return GetResource(content_pack_site_list_); |
| 1337 } | 1341 } |
| 1338 | 1342 |
| 1339 GURL Extension::GetBackgroundURL() const { | 1343 GURL Extension::GetBackgroundURL() const { |
| 1340 if (background_scripts_.empty()) | 1344 if (background_scripts_.empty()) |
| 1341 return background_url_; | 1345 return background_url_; |
| (...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3480 | 3484 |
| 3481 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3485 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 3482 const Extension* extension, | 3486 const Extension* extension, |
| 3483 const PermissionSet* permissions, | 3487 const PermissionSet* permissions, |
| 3484 Reason reason) | 3488 Reason reason) |
| 3485 : reason(reason), | 3489 : reason(reason), |
| 3486 extension(extension), | 3490 extension(extension), |
| 3487 permissions(permissions) {} | 3491 permissions(permissions) {} |
| 3488 | 3492 |
| 3489 } // namespace extensions | 3493 } // namespace extensions |
| OLD | NEW |