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

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: Fix another compile error 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 393
393 // Adds |extension| to this ExtensionService and notifies observers than an 394 // Adds |extension| to this ExtensionService and notifies observers than an
394 // extension has been loaded. Called by the backend after an extension has 395 // extension has been loaded. Called by the backend after an extension has
395 // been loaded from a file and installed. 396 // been loaded from a file and installed.
396 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; 397 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE;
397 398
398 // Called by the backend when an extension has been installed. 399 // Called by the backend when an extension has been installed.
399 void OnExtensionInstalled( 400 void OnExtensionInstalled(
400 const extensions::Extension* extension, 401 const extensions::Extension* extension,
401 bool from_webstore, 402 bool from_webstore,
402 const StringOrdinal& page_ordinal); 403 const syncer::StringOrdinal& page_ordinal);
403 404
404 // Initializes the |extension|'s active permission set and disables the 405 // Initializes the |extension|'s active permission set and disables the
405 // extension if the privilege level has increased (e.g., due to an upgrade). 406 // extension if the privilege level has increased (e.g., due to an upgrade).
406 void InitializePermissions(const extensions::Extension* extension); 407 void InitializePermissions(const extensions::Extension* extension);
407 408
408 // Go through each extensions in pref, unload blacklisted extensions 409 // Go through each extensions in pref, unload blacklisted extensions
409 // and update the blacklist state in pref. 410 // and update the blacklist state in pref.
410 virtual void UpdateExtensionBlacklist( 411 virtual void UpdateExtensionBlacklist(
411 const std::vector<std::string>& blacklist) OVERRIDE; 412 const std::vector<std::string>& blacklist) OVERRIDE;
412 413
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 #endif 874 #endif
874 875
875 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 876 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
876 InstallAppsWithUnlimtedStorage); 877 InstallAppsWithUnlimtedStorage);
877 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 878 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
878 InstallAppsAndCheckStorageProtection); 879 InstallAppsAndCheckStorageProtection);
879 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 880 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
880 }; 881 };
881 882
882 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 883 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698