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

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 multi-profile support 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 bool is_blacklisted); 275 bool is_blacklisted);
276 276
277 // Returns the version string for the currently installed extension, or 277 // Returns the version string for the currently installed extension, or
278 // the empty string if not found. 278 // the empty string if not found.
279 std::string GetVersionString(const std::string& extension_id); 279 std::string GetVersionString(const std::string& extension_id);
280 280
281 // Re-writes the extension manifest into the prefs. 281 // Re-writes the extension manifest into the prefs.
282 // Called to change the extension's manifest when it's re-localized. 282 // Called to change the extension's manifest when it's re-localized.
283 void UpdateManifest(const Extension* extension); 283 void UpdateManifest(const Extension* extension);
284 284
285 // Returns extension path based on extension ID, or empty FilePath on error.
286 base::FilePath GetExtensionPath(const std::string& extension_id);
287
288 // Returns base extensions install directory. 285 // Returns base extensions install directory.
289 const base::FilePath& install_directory() const { return install_directory_; } 286 const base::FilePath& install_directory() const { return install_directory_; }
290 287
291 // Returns whether the extension with |id| has its blacklist bit set. 288 // Returns whether the extension with |id| has its blacklist bit set.
292 // 289 //
293 // WARNING: this only checks the extension's entry in prefs, so by definition 290 // WARNING: this only checks the extension's entry in prefs, so by definition
294 // can only check extensions that prefs knows about. There may be other 291 // can only check extensions that prefs knows about. There may be other
295 // sources of blacklist information, such as safebrowsing. You probably want 292 // sources of blacklist information, such as safebrowsing. You probably want
296 // to use Blacklist::GetBlacklistedIDs rather than this method. 293 // to use Blacklist::GetBlacklistedIDs rather than this method.
297 bool IsExtensionBlacklisted(const std::string& id) const; 294 bool IsExtensionBlacklisted(const std::string& id) const;
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 bool extensions_disabled_; 712 bool extensions_disabled_;
716 713
717 ObserverList<ExtensionPrefsObserver> observer_list_; 714 ObserverList<ExtensionPrefsObserver> observer_list_;
718 715
719 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 716 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
720 }; 717 };
721 718
722 } // namespace extensions 719 } // namespace extensions
723 720
724 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 721 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698