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 <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 std::string manifest; | 116 std::string manifest; |
117 | 117 |
118 // Directory where the extension is stored. | 118 // Directory where the extension is stored. |
119 FilePath root_directory; | 119 FilePath root_directory; |
120 }; | 120 }; |
121 | 121 |
122 // The name of the directory inside the profile where extensions are | 122 // The name of the directory inside the profile where extensions are |
123 // installed to. | 123 // installed to. |
124 static const char* kInstallDirectoryName; | 124 static const char* kInstallDirectoryName; |
125 | 125 |
| 126 // The name of the directory inside the profile where access extensions are |
| 127 // installed to. |
| 128 static const char* kAccessibilityInstallDirectoryName; |
| 129 |
126 // If auto-updates are turned on, default to running every 5 hours. | 130 // If auto-updates are turned on, default to running every 5 hours. |
127 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; | 131 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; |
128 | 132 |
129 // The name of the file that the current active version number is stored in. | 133 // The name of the file that the current active version number is stored in. |
130 static const char* kCurrentVersionFileName; | 134 static const char* kCurrentVersionFileName; |
131 | 135 |
132 // Determine if a given extension download should be treated as if it came | 136 // Determine if a given extension download should be treated as if it came |
133 // from the gallery. Note that this is requires *both* that the download_url | 137 // from the gallery. Note that this is requires *both* that the download_url |
134 // match and that the download was referred from a gallery page. | 138 // match and that the download was referred from a gallery page. |
135 bool IsDownloadFromGallery(const GURL& download_url, | 139 bool IsDownloadFromGallery(const GURL& download_url, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 632 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
629 UpdatePendingExtensionAlreadyInstalled); | 633 UpdatePendingExtensionAlreadyInstalled); |
630 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 634 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
631 InstallAppsWithUnlimtedStorage); | 635 InstallAppsWithUnlimtedStorage); |
632 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 636 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
633 InstallAppsAndCheckStorageProtection); | 637 InstallAppsAndCheckStorageProtection); |
634 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 638 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
635 }; | 639 }; |
636 | 640 |
637 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 641 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |