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

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

Issue 5535002: Decouple killbit testing from external extension providers (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 }; 40 };
41 41
42 explicit ExtensionPrefs(PrefService* prefs, const FilePath& root_dir_); 42 explicit ExtensionPrefs(PrefService* prefs, const FilePath& root_dir_);
43 ~ExtensionPrefs(); 43 ~ExtensionPrefs();
44 44
45 // Returns a copy of the Extensions prefs. 45 // Returns a copy of the Extensions prefs.
46 // TODO(erikkay) Remove this so that external consumers don't need to be 46 // TODO(erikkay) Remove this so that external consumers don't need to be
47 // aware of the internal structure of the preferences. 47 // aware of the internal structure of the preferences.
48 DictionaryValue* CopyCurrentExtensions(); 48 DictionaryValue* CopyCurrentExtensions();
49 49
50 // Populate |killed_ids| with extension ids that have been killed. 50 // Returns true if the specified extension has an entry in prefs
51 void GetKilledExtensionIds(std::set<std::string>* killed_ids); 51 // and its killbit is on.
52 bool IsExtensionKilled(const std::string& id);
52 53
53 // Get the order that toolstrip URLs appear in the shelf. 54 // Get the order that toolstrip URLs appear in the shelf.
54 typedef std::vector<GURL> URLList; 55 typedef std::vector<GURL> URLList;
55 URLList GetShelfToolstripOrder(); 56 URLList GetShelfToolstripOrder();
56 57
57 // Sets the order that toolstrip URLs appear in the shelf. 58 // Sets the order that toolstrip URLs appear in the shelf.
58 void SetShelfToolstripOrder(const URLList& urls); 59 void SetShelfToolstripOrder(const URLList& urls);
59 60
60 // Get the order that the browser actions appear in the toolbar. 61 // Get the order that the browser actions appear in the toolbar.
61 std::vector<std::string> GetToolbarOrder(); 62 std::vector<std::string> GetToolbarOrder();
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // Base extensions install directory. 320 // Base extensions install directory.
320 FilePath install_directory_; 321 FilePath install_directory_;
321 322
322 // The URLs of all of the toolstrips. 323 // The URLs of all of the toolstrips.
323 URLList shelf_order_; 324 URLList shelf_order_;
324 325
325 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 326 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
326 }; 327 };
327 328
328 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 329 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698