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

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

Issue 10378117: With enable-action-box add extensions to BrowserActionContainer only if they have preference kBrows… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 (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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Returns all installed extensions from |extension_prefs|. This is exposed 129 // Returns all installed extensions from |extension_prefs|. This is exposed
130 // for ProtectedPrefsWatcher because it needs access to the extension ID list 130 // for ProtectedPrefsWatcher because it needs access to the extension ID list
131 // before the ExtensionService is initialized. 131 // before the ExtensionService is initialized.
132 static ExtensionIdSet GetExtensionsFrom( 132 static ExtensionIdSet GetExtensionsFrom(
133 const base::DictionaryValue* extension_prefs); 133 const base::DictionaryValue* extension_prefs);
134 134
135 // Getter and setter for browser action visibility. 135 // Getter and setter for browser action visibility.
136 bool GetBrowserActionVisibility(const Extension* extension); 136 bool GetBrowserActionVisibility(const Extension* extension);
137 void SetBrowserActionVisibility(const Extension* extension, bool visible); 137 void SetBrowserActionVisibility(const Extension* extension, bool visible);
138 138
139 // Getter and setter for browser action pined state.
140 bool GetBrowserActionPined(const Extension* extension);
141 void SetBrowserActionPined(const Extension* extension, bool pined);
142
139 // Did the extension ask to escalate its permission during an upgrade? 143 // Did the extension ask to escalate its permission during an upgrade?
140 bool DidExtensionEscalatePermissions(const std::string& id); 144 bool DidExtensionEscalatePermissions(const std::string& id);
141 145
142 // If |did_escalate| is true, the preferences for |extension| will be set to 146 // If |did_escalate| is true, the preferences for |extension| will be set to
143 // require the install warning when the user tries to enable. 147 // require the install warning when the user tries to enable.
144 void SetDidExtensionEscalatePermissions(const Extension* extension, 148 void SetDidExtensionEscalatePermissions(const Extension* extension,
145 bool did_escalate); 149 bool did_escalate);
146 150
147 // Getter and setters for disabled reason. 151 // Getter and setters for disabled reason.
148 Extension::DisableReason GetDisableReason(const std::string& extension_id); 152 Extension::DisableReason GetDisableReason(const std::string& extension_id);
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // Contains all the logic for handling the order for various extension 540 // Contains all the logic for handling the order for various extension
537 // properties. 541 // properties.
538 scoped_ptr<ExtensionSorting> extension_sorting_; 542 scoped_ptr<ExtensionSorting> extension_sorting_;
539 543
540 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 544 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
541 545
542 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 546 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
543 }; 547 };
544 548
545 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 549 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698