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

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: Created 9 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) 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 <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // extension has been loaded. Called by the backend after an extension has 383 // extension has been loaded. Called by the backend after an extension has
384 // been loaded from a file and installed. 384 // been loaded from a file and installed.
385 void AddExtension(const Extension* extension); 385 void AddExtension(const Extension* extension);
386 386
387 // Called by the backend when an unpacked extension has been loaded. 387 // Called by the backend when an unpacked extension has been loaded.
388 void OnLoadSingleExtension(const Extension* extension, 388 void OnLoadSingleExtension(const Extension* extension,
389 bool prompt_for_plugins); 389 bool prompt_for_plugins);
390 390
391 // Called by the backend when an extension has been installed. 391 // Called by the backend when an extension has been installed.
392 void OnExtensionInstalled( 392 void OnExtensionInstalled(
393 const Extension* extension, bool from_webstore, int page_index); 393 const Extension* extension, bool from_webstore, std::string page_index);
394 394
395 // Initializes the |extension|'s active permission set and disables the 395 // Initializes the |extension|'s active permission set and disables the
396 // extension if the privilege level has increased (e.g., due to an upgrade). 396 // extension if the privilege level has increased (e.g., due to an upgrade).
397 void InitializePermissions(const Extension* extension); 397 void InitializePermissions(const Extension* extension);
398 398
399 // Go through each extensions in pref, unload blacklisted extensions 399 // Go through each extensions in pref, unload blacklisted extensions
400 // and update the blacklist state in pref. 400 // and update the blacklist state in pref.
401 virtual void UpdateExtensionBlacklist( 401 virtual void UpdateExtensionBlacklist(
402 const std::vector<std::string>& blacklist) OVERRIDE; 402 const std::vector<std::string>& blacklist) OVERRIDE;
403 403
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 SyncBundle extension_sync_bundle_; 796 SyncBundle extension_sync_bundle_;
797 797
798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
799 InstallAppsWithUnlimtedStorage); 799 InstallAppsWithUnlimtedStorage);
800 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 800 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
801 InstallAppsAndCheckStorageProtection); 801 InstallAppsAndCheckStorageProtection);
802 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 802 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
803 }; 803 };
804 804
805 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 805 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698