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

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

Issue 273193006: Install Chrome OS apps to shared location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added uninstall Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool is_blacklisted); 273 bool is_blacklisted);
274 274
275 // Returns the version string for the currently installed extension, or 275 // Returns the version string for the currently installed extension, or
276 // the empty string if not found. 276 // the empty string if not found.
277 std::string GetVersionString(const std::string& extension_id); 277 std::string GetVersionString(const std::string& extension_id);
278 278
279 // Re-writes the extension manifest into the prefs. 279 // Re-writes the extension manifest into the prefs.
280 // Called to change the extension's manifest when it's re-localized. 280 // Called to change the extension's manifest when it's re-localized.
281 void UpdateManifest(const Extension* extension); 281 void UpdateManifest(const Extension* extension);
282 282
283 // Returns extension path based on extension ID, or empty FilePath on error.
284 base::FilePath GetExtensionPath(const std::string& extension_id);
285
286 // Returns base extensions install directory. 283 // Returns base extensions install directory.
287 const base::FilePath& install_directory() const { return install_directory_; } 284 const base::FilePath& install_directory() const { return install_directory_; }
288 285
289 // Returns whether the extension with |id| has its blacklist bit set. 286 // Returns whether the extension with |id| has its blacklist bit set.
290 // 287 //
291 // WARNING: this only checks the extension's entry in prefs, so by definition 288 // WARNING: this only checks the extension's entry in prefs, so by definition
292 // can only check extensions that prefs knows about. There may be other 289 // can only check extensions that prefs knows about. There may be other
293 // sources of blacklist information, such as safebrowsing. You probably want 290 // sources of blacklist information, such as safebrowsing. You probably want
294 // to use Blacklist::GetBlacklistedIDs rather than this method. 291 // to use Blacklist::GetBlacklistedIDs rather than this method.
295 bool IsExtensionBlacklisted(const std::string& id) const; 292 bool IsExtensionBlacklisted(const std::string& id) const;
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 bool extensions_disabled_; 710 bool extensions_disabled_;
714 711
715 ObserverList<ExtensionPrefsObserver> observer_list_; 712 ObserverList<ExtensionPrefsObserver> observer_list_;
716 713
717 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 714 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
718 }; 715 };
719 716
720 } // namespace extensions 717 } // namespace extensions
721 718
722 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 719 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698