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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Called when an extension is installed, so that prefs get created. 139 // Called when an extension is installed, so that prefs get created.
140 // If |page_ordinal| is an invalid ordinal, then a page will be found 140 // If |page_ordinal| is an invalid ordinal, then a page will be found
141 // for the App. 141 // for the App.
142 void OnExtensionInstalled(const Extension* extension, 142 void OnExtensionInstalled(const Extension* extension,
143 Extension::State initial_state, 143 Extension::State initial_state,
144 const syncer::StringOrdinal& page_ordinal); 144 const syncer::StringOrdinal& page_ordinal);
145 145
146 // Called when an extension is uninstalled, so that prefs get cleaned up. 146 // Called when an extension is uninstalled, so that prefs get cleaned up.
147 void OnExtensionUninstalled(const std::string& extension_id, 147 void OnExtensionUninstalled(const std::string& extension_id,
148 const Extension::Location& location, 148 const Manifest::Location& location,
149 bool external_uninstall); 149 bool external_uninstall);
150 150
151 // Called to change the extension's state when it is enabled/disabled. 151 // Called to change the extension's state when it is enabled/disabled.
152 void SetExtensionState(const std::string& extension_id, Extension::State); 152 void SetExtensionState(const std::string& extension_id, Extension::State);
153 153
154 // Returns all installed extensions 154 // Returns all installed extensions
155 void GetExtensions(ExtensionIdList* out); 155 void GetExtensions(ExtensionIdList* out);
156 156
157 // Getter and setter for browser action visibility. 157 // Getter and setter for browser action visibility.
158 bool GetBrowserActionVisibility(const Extension* extension); 158 bool GetBrowserActionVisibility(const Extension* extension);
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 scoped_refptr<ContentSettingsStore> content_settings_store_; 650 scoped_refptr<ContentSettingsStore> content_settings_store_;
651 651
652 scoped_ptr<TimeProvider> time_provider_; 652 scoped_ptr<TimeProvider> time_provider_;
653 653
654 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 654 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
655 }; 655 };
656 656
657 } // namespace extensions 657 } // namespace extensions
658 658
659 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 659 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_nacl_browsertest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698