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> | |
11 #include <string> | 10 #include <string> |
12 #include <vector> | 11 #include <vector> |
13 | 12 |
14 #include "base/command_line.h" | 13 #include "base/command_line.h" |
15 #include "base/file_path.h" | 14 #include "base/file_path.h" |
16 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
17 #include "base/linked_ptr.h" | 16 #include "base/linked_ptr.h" |
18 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
19 #include "base/task.h" | 18 #include "base/task.h" |
20 #include "base/time.h" | 19 #include "base/time.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 438 |
440 // Whether there are any apps installed. Component apps are not included. | 439 // Whether there are any apps installed. Component apps are not included. |
441 bool HasApps() const; | 440 bool HasApps() const; |
442 | 441 |
443 // Gets the set of loaded app ids. Component apps are not included. | 442 // Gets the set of loaded app ids. Component apps are not included. |
444 ExtensionIdSet GetAppIds() const; | 443 ExtensionIdSet GetAppIds() const; |
445 | 444 |
446 private: | 445 private: |
447 friend class BrowserThread; | 446 friend class BrowserThread; |
448 friend class DeleteTask<ExtensionsService>; | 447 friend class DeleteTask<ExtensionsService>; |
| 448 FRIEND_TEST_ALL_PREFIXES(ExtensionManagementTest, ExternalUrlUpdate); |
449 | 449 |
450 // Contains Extension data that can change during the life of the process, | 450 // Contains Extension data that can change during the life of the process, |
451 // but does not persist across restarts. | 451 // but does not persist across restarts. |
452 struct ExtensionRuntimeData { | 452 struct ExtensionRuntimeData { |
453 // True if the background page is ready. | 453 // True if the background page is ready. |
454 bool background_page_ready; | 454 bool background_page_ready; |
455 | 455 |
456 // True while the extension is being upgraded. | 456 // True while the extension is being upgraded. |
457 bool being_upgraded; | 457 bool being_upgraded; |
458 | 458 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 598 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
599 UpdatePendingExtensionAlreadyInstalled); | 599 UpdatePendingExtensionAlreadyInstalled); |
600 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 600 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
601 InstallAppsWithUnlimtedStorage); | 601 InstallAppsWithUnlimtedStorage); |
602 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 602 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
603 InstallAppsAndCheckStorageProtection); | 603 InstallAppsAndCheckStorageProtection); |
604 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); | 604 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); |
605 }; | 605 }; |
606 | 606 |
607 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 607 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
OLD | NEW |