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

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

Issue 8198003: Convert app_launch_index and page_index from int to StringOrdinal. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixing clang compile Created 9 years 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) 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 <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Called when the initial extensions load has completed. 386 // Called when the initial extensions load has completed.
387 virtual void OnLoadedInstalledExtensions(); 387 virtual void OnLoadedInstalledExtensions();
388 388
389 // Adds |extension| to this ExtensionService and notifies observers than an 389 // Adds |extension| to this ExtensionService and notifies observers than an
390 // extension has been loaded. Called by the backend after an extension has 390 // extension has been loaded. Called by the backend after an extension has
391 // been loaded from a file and installed. 391 // been loaded from a file and installed.
392 virtual void AddExtension(const Extension* extension) OVERRIDE; 392 virtual void AddExtension(const Extension* extension) OVERRIDE;
393 393
394 // Called by the backend when an extension has been installed. 394 // Called by the backend when an extension has been installed.
395 void OnExtensionInstalled( 395 void OnExtensionInstalled(
396 const Extension* extension, bool from_webstore, int page_index); 396 const Extension* extension,
397 bool from_webstore,
398 const StringOrdinal& page_ordinal);
397 399
398 // Initializes the |extension|'s active permission set and disables the 400 // Initializes the |extension|'s active permission set and disables the
399 // extension if the privilege level has increased (e.g., due to an upgrade). 401 // extension if the privilege level has increased (e.g., due to an upgrade).
400 void InitializePermissions(const Extension* extension); 402 void InitializePermissions(const Extension* extension);
401 403
402 // Go through each extensions in pref, unload blacklisted extensions 404 // Go through each extensions in pref, unload blacklisted extensions
403 // and update the blacklist state in pref. 405 // and update the blacklist state in pref.
404 virtual void UpdateExtensionBlacklist( 406 virtual void UpdateExtensionBlacklist(
405 const std::vector<std::string>& blacklist) OVERRIDE; 407 const std::vector<std::string>& blacklist) OVERRIDE;
406 408
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 ImageLoadingTracker tracker_; 850 ImageLoadingTracker tracker_;
849 851
850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
851 InstallAppsWithUnlimtedStorage); 853 InstallAppsWithUnlimtedStorage);
852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
853 InstallAppsAndCheckStorageProtection); 855 InstallAppsAndCheckStorageProtection);
854 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
855 }; 857 };
856 858
857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698