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