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

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

Issue 10920017: [Sync] Generalize StringOrdinal to handle ordinal_in_parent field (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Relax tests Created 8 years, 3 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 <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 #include "chrome/browser/extensions/external_provider_interface.h" 32 #include "chrome/browser/extensions/external_provider_interface.h"
33 #include "chrome/browser/extensions/menu_manager.h" 33 #include "chrome/browser/extensions/menu_manager.h"
34 #include "chrome/browser/extensions/pending_extension_manager.h" 34 #include "chrome/browser/extensions/pending_extension_manager.h"
35 #include "chrome/browser/extensions/process_map.h" 35 #include "chrome/browser/extensions/process_map.h"
36 #include "chrome/common/extensions/extension.h" 36 #include "chrome/common/extensions/extension.h"
37 #include "chrome/common/extensions/extension_constants.h" 37 #include "chrome/common/extensions/extension_constants.h"
38 #include "chrome/common/extensions/extension_set.h" 38 #include "chrome/common/extensions/extension_set.h"
39 #include "content/public/browser/browser_thread.h" 39 #include "content/public/browser/browser_thread.h"
40 #include "content/public/browser/notification_observer.h" 40 #include "content/public/browser/notification_observer.h"
41 #include "content/public/browser/notification_registrar.h" 41 #include "content/public/browser/notification_registrar.h"
42 #include "sync/api/string_ordinal.h"
42 #include "sync/api/sync_change.h" 43 #include "sync/api/sync_change.h"
43 #include "sync/api/syncable_service.h" 44 #include "sync/api/syncable_service.h"
44 45
45 class BookmarkExtensionEventRouter; 46 class BookmarkExtensionEventRouter;
46 class CommandLine; 47 class CommandLine;
47 class ExtensionErrorUI; 48 class ExtensionErrorUI;
48 class ExtensionFontSettingsEventRouter; 49 class ExtensionFontSettingsEventRouter;
49 class ExtensionManagementEventRouter; 50 class ExtensionManagementEventRouter;
50 class ExtensionPreferenceEventRouter; 51 class ExtensionPreferenceEventRouter;
51 class ExtensionSyncData; 52 class ExtensionSyncData;
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 399
399 // Adds |extension| to this ExtensionService and notifies observers than an 400 // Adds |extension| to this ExtensionService and notifies observers than an
400 // extension has been loaded. Called by the backend after an extension has 401 // extension has been loaded. Called by the backend after an extension has
401 // been loaded from a file and installed. 402 // been loaded from a file and installed.
402 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; 403 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE;
403 404
404 // Called by the backend when an extension has been installed. 405 // Called by the backend when an extension has been installed.
405 void OnExtensionInstalled( 406 void OnExtensionInstalled(
406 const extensions::Extension* extension, 407 const extensions::Extension* extension,
407 bool from_webstore, 408 bool from_webstore,
408 const StringOrdinal& page_ordinal); 409 const syncer::StringOrdinal& page_ordinal);
409 410
410 // Initializes the |extension|'s active permission set and disables the 411 // Initializes the |extension|'s active permission set and disables the
411 // extension if the privilege level has increased (e.g., due to an upgrade). 412 // extension if the privilege level has increased (e.g., due to an upgrade).
412 void InitializePermissions(const extensions::Extension* extension); 413 void InitializePermissions(const extensions::Extension* extension);
413 414
414 // Go through each extensions in pref, unload blacklisted extensions 415 // Go through each extensions in pref, unload blacklisted extensions
415 // and update the blacklist state in pref. 416 // and update the blacklist state in pref.
416 virtual void UpdateExtensionBlacklist( 417 virtual void UpdateExtensionBlacklist(
417 const std::vector<std::string>& blacklist) OVERRIDE; 418 const std::vector<std::string>& blacklist) OVERRIDE;
418 419
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 #endif 880 #endif
880 881
881 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 882 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
882 InstallAppsWithUnlimtedStorage); 883 InstallAppsWithUnlimtedStorage);
883 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 884 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
884 InstallAppsAndCheckStorageProtection); 885 InstallAppsAndCheckStorageProtection);
885 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 886 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
886 }; 887 };
887 888
888 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 889 #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