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

Side by Side Diff: chrome/browser/extensions/extension_prefs.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_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h" 15 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
16 #include "chrome/browser/extensions/extension_prefs_scope.h" 16 #include "chrome/browser/extensions/extension_prefs_scope.h"
17 #include "chrome/browser/extensions/extension_scoped_prefs.h" 17 #include "chrome/browser/extensions/extension_scoped_prefs.h"
18 #include "chrome/browser/extensions/management_policy.h" 18 #include "chrome/browser/extensions/management_policy.h"
19 #include "chrome/browser/media_gallery/media_galleries_preferences.h" 19 #include "chrome/browser/media_gallery/media_galleries_preferences.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "chrome/common/extensions/url_pattern_set.h" 21 #include "chrome/common/extensions/url_pattern_set.h"
22 #include "chrome/common/string_ordinal.h" 22 #include "sync/api/string_ordinal.h"
23 23
24 class ExtensionPrefValueMap; 24 class ExtensionPrefValueMap;
25 class ExtensionSorting; 25 class ExtensionSorting;
26 class PrefService; 26 class PrefService;
27 class URLPatternSet; 27 class URLPatternSet;
28 28
29 namespace extensions { 29 namespace extensions {
30 class ExtensionPrefsUninstallExtension; 30 class ExtensionPrefsUninstallExtension;
31 struct ExtensionOmniboxSuggestion; 31 struct ExtensionOmniboxSuggestion;
32 32
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Get/Set the order that the browser actions appear in the action box. 115 // Get/Set the order that the browser actions appear in the action box.
116 ExtensionIds GetActionBoxOrder(); 116 ExtensionIds GetActionBoxOrder();
117 void SetActionBoxOrder(const ExtensionIds& extension_ids); 117 void SetActionBoxOrder(const ExtensionIds& extension_ids);
118 118
119 // Called when an extension is installed, so that prefs get created. 119 // Called when an extension is installed, so that prefs get created.
120 // If |page_ordinal| is an invalid ordinal, then a page will be found 120 // If |page_ordinal| is an invalid ordinal, then a page will be found
121 // for the App. 121 // for the App.
122 void OnExtensionInstalled(const Extension* extension, 122 void OnExtensionInstalled(const Extension* extension,
123 Extension::State initial_state, 123 Extension::State initial_state,
124 bool from_webstore, 124 bool from_webstore,
125 const StringOrdinal& page_ordinal); 125 const syncer::StringOrdinal& page_ordinal);
126 126
127 // Called when an extension is uninstalled, so that prefs get cleaned up. 127 // Called when an extension is uninstalled, so that prefs get cleaned up.
128 void OnExtensionUninstalled(const std::string& extension_id, 128 void OnExtensionUninstalled(const std::string& extension_id,
129 const Extension::Location& location, 129 const Extension::Location& location,
130 bool external_uninstall); 130 bool external_uninstall);
131 131
132 // Called to change the extension's state when it is enabled/disabled. 132 // Called to change the extension's state when it is enabled/disabled.
133 void SetExtensionState(const std::string& extension_id, Extension::State); 133 void SetExtensionState(const std::string& extension_id, Extension::State);
134 134
135 // Returns all installed extensions 135 // Returns all installed extensions
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 scoped_ptr<ExtensionSorting> extension_sorting_; 565 scoped_ptr<ExtensionSorting> extension_sorting_;
566 566
567 scoped_refptr<ContentSettingsStore> content_settings_store_; 567 scoped_refptr<ContentSettingsStore> content_settings_store_;
568 568
569 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 569 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
570 }; 570 };
571 571
572 } // namespace extensions 572 } // namespace extensions
573 573
574 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 574 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698