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