| 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // The name of the directory inside the profile where extensions are | 64 // The name of the directory inside the profile where extensions are |
| 65 // installed to. | 65 // installed to. |
| 66 static const char* kInstallDirectoryName; | 66 static const char* kInstallDirectoryName; |
| 67 | 67 |
| 68 // If auto-updates are turned on, default to running every 5 hours. | 68 // If auto-updates are turned on, default to running every 5 hours. |
| 69 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; | 69 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; |
| 70 | 70 |
| 71 // The name of the file that the current active version number is stored in. | 71 // The name of the file that the current active version number is stored in. |
| 72 static const char* kCurrentVersionFileName; | 72 static const char* kCurrentVersionFileName; |
| 73 | 73 |
| 74 // Hack: | |
| 75 // Extensions downloaded from kGalleryDownloadURLPrefix initiated from pages | |
| 76 // with kGalleryURLPrefix will not require --enable-extensions and will be | |
| 77 // prompt-free. | |
| 78 static const char* kGalleryDownloadURLPrefix; | |
| 79 static const char* kGalleryURLPrefix; | |
| 80 | |
| 81 // Determine if a given extension download should be treated as if it came | 74 // Determine if a given extension download should be treated as if it came |
| 82 // from the gallery. | 75 // from the gallery. |
| 83 static bool IsDownloadFromGallery(const GURL& download_url, | 76 static bool IsDownloadFromGallery(const GURL& download_url, |
| 84 const GURL& referrer_url); | 77 const GURL& referrer_url); |
| 85 | 78 |
| 86 ExtensionsService(Profile* profile, | 79 ExtensionsService(Profile* profile, |
| 87 const CommandLine* command_line, | 80 const CommandLine* command_line, |
| 88 PrefService* prefs, | 81 PrefService* prefs, |
| 89 const FilePath& install_directory, | 82 const FilePath& install_directory, |
| 90 bool autoupdate_enabled); | 83 bool autoupdate_enabled); |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 385 |
| 393 // A map of all external extension providers. | 386 // A map of all external extension providers. |
| 394 typedef std::map<Extension::Location, | 387 typedef std::map<Extension::Location, |
| 395 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 388 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
| 396 ProviderMap external_extension_providers_; | 389 ProviderMap external_extension_providers_; |
| 397 | 390 |
| 398 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 391 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 399 }; | 392 }; |
| 400 | 393 |
| 401 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 394 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |