OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 174 } |
175 | 175 |
176 const FilePath& install_directory() const { return install_directory_; } | 176 const FilePath& install_directory() const { return install_directory_; } |
177 | 177 |
178 DefaultApps* default_apps() { return &default_apps_; } | 178 DefaultApps* default_apps() { return &default_apps_; } |
179 | 179 |
180 // Whether this extension can run in an incognito window. | 180 // Whether this extension can run in an incognito window. |
181 bool IsIncognitoEnabled(const Extension* extension); | 181 bool IsIncognitoEnabled(const Extension* extension); |
182 void SetIsIncognitoEnabled(const Extension* extension, bool enabled); | 182 void SetIsIncognitoEnabled(const Extension* extension, bool enabled); |
183 | 183 |
| 184 // Returns true if the given extension can see events and data from another |
| 185 // sub-profile (incognito to original profile, or vice versa). |
| 186 bool CanCrossIncognito(const Extension* extension); |
| 187 |
184 // Whether this extension can inject scripts into pages with file URLs. | 188 // Whether this extension can inject scripts into pages with file URLs. |
185 bool AllowFileAccess(const Extension* extension); | 189 bool AllowFileAccess(const Extension* extension); |
186 void SetAllowFileAccess(const Extension* extension, bool allow); | 190 void SetAllowFileAccess(const Extension* extension, bool allow); |
187 | 191 |
188 // Initialize and start all installed extensions. | 192 // Initialize and start all installed extensions. |
189 void Init(); | 193 void Init(); |
190 | 194 |
191 // Start up the extension event routers. | 195 // Start up the extension event routers. |
192 void InitEventRouters(); | 196 void InitEventRouters(); |
193 | 197 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 540 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
537 UpdatePendingExtensionAlreadyInstalled); | 541 UpdatePendingExtensionAlreadyInstalled); |
538 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 542 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
539 InstallAppsWithUnlimtedStorage); | 543 InstallAppsWithUnlimtedStorage); |
540 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 544 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
541 InstallAppsAndCheckStorageProtection); | 545 InstallAppsAndCheckStorageProtection); |
542 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); | 546 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); |
543 }; | 547 }; |
544 | 548 |
545 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 549 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
OLD | NEW |