OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 // Notifies Sync (if needed) of a newly-installed extension or a change to | 379 // Notifies Sync (if needed) of a newly-installed extension or a change to |
380 // an existing extension. | 380 // an existing extension. |
381 virtual void SyncExtensionChangeIfNeeded( | 381 virtual void SyncExtensionChangeIfNeeded( |
382 const extensions::Extension& extension) OVERRIDE; | 382 const extensions::Extension& extension) OVERRIDE; |
383 | 383 |
384 // Returns true if |url| should get extension api bindings and be permitted | 384 // Returns true if |url| should get extension api bindings and be permitted |
385 // to make api calls. Note that this is independent of what extension | 385 // to make api calls. Note that this is independent of what extension |
386 // permissions the given extension has been granted. | 386 // permissions the given extension has been granted. |
387 bool ExtensionBindingsAllowed(const GURL& url); | 387 bool ExtensionBindingsAllowed(const GURL& url); |
388 | 388 |
| 389 // Returns true if a normal browser window should avoid showing |url| in a |
| 390 // tab. |
| 391 bool ShouldNotDisplayUrlInBrowserTab(const GURL& url); |
| 392 |
389 // Returns the icon to display in the omnibox for the given extension. | 393 // Returns the icon to display in the omnibox for the given extension. |
390 gfx::Image GetOmniboxIcon(const std::string& extension_id); | 394 gfx::Image GetOmniboxIcon(const std::string& extension_id); |
391 | 395 |
392 // Returns the icon to display in the omnibox popup window for the given | 396 // Returns the icon to display in the omnibox popup window for the given |
393 // extension. | 397 // extension. |
394 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); | 398 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); |
395 | 399 |
396 // Called when the initial extensions load has completed. | 400 // Called when the initial extensions load has completed. |
397 virtual void OnLoadedInstalledExtensions(); | 401 virtual void OnLoadedInstalledExtensions(); |
398 | 402 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 #endif | 883 #endif |
880 | 884 |
881 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 885 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
882 InstallAppsWithUnlimtedStorage); | 886 InstallAppsWithUnlimtedStorage); |
883 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 887 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
884 InstallAppsAndCheckStorageProtection); | 888 InstallAppsAndCheckStorageProtection); |
885 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 889 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
886 }; | 890 }; |
887 | 891 |
888 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 892 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |