| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 public: | 133 public: |
| 134 using base::SupportsWeakPtr<ExtensionService>::AsWeakPtr; | 134 using base::SupportsWeakPtr<ExtensionService>::AsWeakPtr; |
| 135 | 135 |
| 136 // The name of the directory inside the profile where extensions are | 136 // The name of the directory inside the profile where extensions are |
| 137 // installed to. | 137 // installed to. |
| 138 static const char* kInstallDirectoryName; | 138 static const char* kInstallDirectoryName; |
| 139 | 139 |
| 140 // If auto-updates are turned on, default to running every 5 hours. | 140 // If auto-updates are turned on, default to running every 5 hours. |
| 141 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; | 141 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; |
| 142 | 142 |
| 143 // The name of the directory inside the profile where per-extension settings | 143 // The name of the directory inside the profile where per-app local settings |
| 144 // are stored. | 144 // are stored. |
| 145 static const char* kExtensionSettingsDirectoryName; | 145 static const char* kLocalAppSettingsDirectoryName; |
| 146 | 146 |
| 147 // The name of the directory inside the profile where per-app settings | 147 // The name of the directory inside the profile where per-extension local |
| 148 // settings are stored. |
| 149 static const char* kLocalExtensionSettingsDirectoryName; |
| 150 |
| 151 // The name of the directory inside the profile where per-app synced settings |
| 148 // are stored. | 152 // are stored. |
| 149 static const char* kAppSettingsDirectoryName; | 153 static const char* kSyncAppSettingsDirectoryName; |
| 154 |
| 155 // The name of the directory inside the profile where per-extension synced |
| 156 // settings are stored. |
| 157 static const char* kSyncExtensionSettingsDirectoryName; |
| 150 | 158 |
| 151 // Determine if a given extension download should be treated as if it came | 159 // Determine if a given extension download should be treated as if it came |
| 152 // from the gallery. Note that this is requires *both* that the download_url | 160 // from the gallery. Note that this is requires *both* that the download_url |
| 153 // match and that the download was referred from a gallery page. | 161 // match and that the download was referred from a gallery page. |
| 154 bool IsDownloadFromGallery(const GURL& download_url, | 162 bool IsDownloadFromGallery(const GURL& download_url, |
| 155 const GURL& referrer_url); | 163 const GURL& referrer_url); |
| 156 | 164 |
| 157 // Returns the Extension of hosted or packaged apps, NULL otherwise. | 165 // Returns the Extension of hosted or packaged apps, NULL otherwise. |
| 158 const Extension* GetInstalledApp(const GURL& url); | 166 const Extension* GetInstalledApp(const GURL& url); |
| 159 | 167 |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 extensions::ProcessMap process_map_; | 811 extensions::ProcessMap process_map_; |
| 804 | 812 |
| 805 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 813 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 806 InstallAppsWithUnlimtedStorage); | 814 InstallAppsWithUnlimtedStorage); |
| 807 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 815 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 808 InstallAppsAndCheckStorageProtection); | 816 InstallAppsAndCheckStorageProtection); |
| 809 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 817 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 810 }; | 818 }; |
| 811 | 819 |
| 812 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 820 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |