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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 310 |
311 // Called only by testing. | 311 // Called only by testing. |
312 void ReloadExtensions(); | 312 void ReloadExtensions(); |
313 | 313 |
314 // Scan the extension directory and clean up the cruft. | 314 // Scan the extension directory and clean up the cruft. |
315 void GarbageCollectExtensions(); | 315 void GarbageCollectExtensions(); |
316 | 316 |
317 // The App that represents the web store. | 317 // The App that represents the web store. |
318 const Extension* GetWebStoreApp(); | 318 const Extension* GetWebStoreApp(); |
319 | 319 |
| 320 // Sets the order the apps should be displayed in the app launcher. |
| 321 void SetAppLauncherOrder(const std::vector<std::string>& extension_ids); |
| 322 |
320 // Lookup an extension by |url|. | 323 // Lookup an extension by |url|. |
321 const Extension* GetExtensionByURL(const GURL& url); | 324 const Extension* GetExtensionByURL(const GURL& url); |
322 | 325 |
323 // If there is an extension for the specified url it is returned. Otherwise | 326 // If there is an extension for the specified url it is returned. Otherwise |
324 // returns the extension whose web extent contains |url|. | 327 // returns the extension whose web extent contains |url|. |
325 const Extension* GetExtensionByWebExtent(const GURL& url); | 328 const Extension* GetExtensionByWebExtent(const GURL& url); |
326 | 329 |
327 // Returns an extension that contains any URL that overlaps with the given | 330 // Returns an extension that contains any URL that overlaps with the given |
328 // extent, if one exists. | 331 // extent, if one exists. |
329 const Extension* GetExtensionByOverlappingWebExtent( | 332 const Extension* GetExtensionByOverlappingWebExtent( |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 631 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
629 UpdatePendingExtensionAlreadyInstalled); | 632 UpdatePendingExtensionAlreadyInstalled); |
630 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
631 InstallAppsWithUnlimtedStorage); | 634 InstallAppsWithUnlimtedStorage); |
632 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
633 InstallAppsAndCheckStorageProtection); | 636 InstallAppsAndCheckStorageProtection); |
634 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 637 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
635 }; | 638 }; |
636 | 639 |
637 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 640 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |