Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 10920084: don't display platform app resources in normal browser windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // Notifies Sync (if needed) of a newly-installed extension or a change to 382 // Notifies Sync (if needed) of a newly-installed extension or a change to
383 // an existing extension. 383 // an existing extension.
384 virtual void SyncExtensionChangeIfNeeded( 384 virtual void SyncExtensionChangeIfNeeded(
385 const extensions::Extension& extension) OVERRIDE; 385 const extensions::Extension& extension) OVERRIDE;
386 386
387 // Returns true if |url| should get extension api bindings and be permitted 387 // Returns true if |url| should get extension api bindings and be permitted
388 // to make api calls. Note that this is independent of what extension 388 // to make api calls. Note that this is independent of what extension
389 // permissions the given extension has been granted. 389 // permissions the given extension has been granted.
390 bool ExtensionBindingsAllowed(const GURL& url); 390 bool ExtensionBindingsAllowed(const GURL& url);
391 391
392 // Returns true if a normal browser window should avoid showing |url| in a
393 // tab. In this case, |url| is also rewritten to an error URL.
394 bool ShouldBlockUrlInBrowserTab(GURL* url);
395
392 // Returns the icon to display in the omnibox for the given extension. 396 // Returns the icon to display in the omnibox for the given extension.
393 gfx::Image GetOmniboxIcon(const std::string& extension_id); 397 gfx::Image GetOmniboxIcon(const std::string& extension_id);
394 398
395 // Returns the icon to display in the omnibox popup window for the given 399 // Returns the icon to display in the omnibox popup window for the given
396 // extension. 400 // extension.
397 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id); 401 gfx::Image GetOmniboxPopupIcon(const std::string& extension_id);
398 402
399 // Called when the initial extensions load has completed. 403 // Called when the initial extensions load has completed.
400 virtual void OnLoadedInstalledExtensions(); 404 virtual void OnLoadedInstalledExtensions();
401 405
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 #endif 897 #endif
894 898
895 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 899 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
896 InstallAppsWithUnlimtedStorage); 900 InstallAppsWithUnlimtedStorage);
897 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 901 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
898 InstallAppsAndCheckStorageProtection); 902 InstallAppsAndCheckStorageProtection);
899 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 903 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
900 }; 904 };
901 905
902 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 906 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/platform_app_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698