| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 static const wchar_t* kValidThemeKeys[] = { | 79 static const wchar_t* kValidThemeKeys[] = { |
| 80 keys::kDescription, | 80 keys::kDescription, |
| 81 keys::kName, | 81 keys::kName, |
| 82 keys::kPublicKey, | 82 keys::kPublicKey, |
| 83 keys::kSignature, | 83 keys::kSignature, |
| 84 keys::kTheme, | 84 keys::kTheme, |
| 85 keys::kVersion, | 85 keys::kVersion, |
| 86 keys::kUpdateURL | 86 keys::kUpdateURL |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 const char* Extension::kGalleryBrowseUrl = | |
| 90 "https://chrome.google.com/extensions"; | |
| 91 | |
| 92 #if defined(OS_WIN) | 89 #if defined(OS_WIN) |
| 93 const char* Extension::kExtensionRegistryPath = | 90 const char* Extension::kExtensionRegistryPath = |
| 94 "Software\\Google\\Chrome\\Extensions"; | 91 "Software\\Google\\Chrome\\Extensions"; |
| 95 #endif | 92 #endif |
| 96 | 93 |
| 97 // first 16 bytes of SHA256 hashed public key. | 94 // first 16 bytes of SHA256 hashed public key. |
| 98 const size_t Extension::kIdSize = 16; | 95 const size_t Extension::kIdSize = 16; |
| 99 | 96 |
| 100 const char Extension::kMimeType[] = "application/x-chrome-extension"; | 97 const char Extension::kMimeType[] = "application/x-chrome-extension"; |
| 101 | 98 |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 UserScript::PatternList::const_iterator pattern = | 1259 UserScript::PatternList::const_iterator pattern = |
| 1263 content_script->url_patterns().begin(); | 1260 content_script->url_patterns().begin(); |
| 1264 for (; pattern != content_script->url_patterns().end(); ++pattern) { | 1261 for (; pattern != content_script->url_patterns().end(); ++pattern) { |
| 1265 if (pattern->match_subdomains() && pattern->host().empty()) | 1262 if (pattern->match_subdomains() && pattern->host().empty()) |
| 1266 return true; | 1263 return true; |
| 1267 } | 1264 } |
| 1268 } | 1265 } |
| 1269 | 1266 |
| 1270 return false; | 1267 return false; |
| 1271 } | 1268 } |
| OLD | NEW |