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

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: comment fixed Created 6 years, 6 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 bool is_blacklisted); 276 bool is_blacklisted);
277 277
278 // Returns the version string for the currently installed extension, or 278 // Returns the version string for the currently installed extension, or
279 // the empty string if not found. 279 // the empty string if not found.
280 std::string GetVersionString(const std::string& extension_id); 280 std::string GetVersionString(const std::string& extension_id);
281 281
282 // Re-writes the extension manifest into the prefs. 282 // Re-writes the extension manifest into the prefs.
283 // Called to change the extension's manifest when it's re-localized. 283 // Called to change the extension's manifest when it's re-localized.
284 void UpdateManifest(const Extension* extension); 284 void UpdateManifest(const Extension* extension);
285 285
286 // Returns extension path based on extension ID, or empty FilePath on error.
287 base::FilePath GetExtensionPath(const std::string& extension_id);
288
289 // Returns base extensions install directory. 286 // Returns base extensions install directory.
290 const base::FilePath& install_directory() const { return install_directory_; } 287 const base::FilePath& install_directory() const { return install_directory_; }
291 288
292 // Returns whether the extension with |id| has its blacklist bit set. 289 // Returns whether the extension with |id| has its blacklist bit set.
293 // 290 //
294 // WARNING: this only checks the extension's entry in prefs, so by definition 291 // WARNING: this only checks the extension's entry in prefs, so by definition
295 // can only check extensions that prefs knows about. There may be other 292 // can only check extensions that prefs knows about. There may be other
296 // sources of blacklist information, such as safebrowsing. You probably want 293 // sources of blacklist information, such as safebrowsing. You probably want
297 // to use Blacklist::GetBlacklistedIDs rather than this method. 294 // to use Blacklist::GetBlacklistedIDs rather than this method.
298 bool IsExtensionBlacklisted(const std::string& id) const; 295 bool IsExtensionBlacklisted(const std::string& id) const;
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 bool extensions_disabled_; 721 bool extensions_disabled_;
725 722
726 ObserverList<ExtensionPrefsObserver> observer_list_; 723 ObserverList<ExtensionPrefsObserver> observer_list_;
727 724
728 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 725 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
729 }; 726 };
730 727
731 } // namespace extensions 728 } // namespace extensions
732 729
733 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 730 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698