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

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

Issue 8380006: Exempt component and policy-installed extensions from policy blacklist check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Returns true if the extension notification code has already run for the 166 // Returns true if the extension notification code has already run for the
167 // first time for this profile. Currently we use this flag to mean that any 167 // first time for this profile. Currently we use this flag to mean that any
168 // extensions that would trigger notifications should get silently 168 // extensions that would trigger notifications should get silently
169 // acknowledged. This is a fuse. Calling it the first time returns false. 169 // acknowledged. This is a fuse. Calling it the first time returns false.
170 // Subsequent calls return true. It's not possible through an API to ever 170 // Subsequent calls return true. It's not possible through an API to ever
171 // reset it. Don't call it unless you mean it! 171 // reset it. Don't call it unless you mean it!
172 bool SetAlertSystemFirstRun(); 172 bool SetAlertSystemFirstRun();
173 173
174 // Is the extension with |extension_id| allowed by policy (checking both 174 // Is the extension with |extension_id| allowed by policy (checking both
175 // whitelist and blacklist). 175 // whitelist and blacklist).
176 bool IsExtensionAllowedByPolicy(const std::string& extension_id); 176 bool IsExtensionAllowedByPolicy(const std::string& extension_id,
177 Extension::Location location);
177 178
178 // Returns the last value set via SetLastPingDay. If there isn't such a 179 // Returns the last value set via SetLastPingDay. If there isn't such a
179 // pref, the returned Time will return true for is_null(). 180 // pref, the returned Time will return true for is_null().
180 base::Time LastPingDay(const std::string& extension_id) const; 181 base::Time LastPingDay(const std::string& extension_id) const;
181 182
182 // The time stored is based on the server's perspective of day start time, not 183 // The time stored is based on the server's perspective of day start time, not
183 // the client's. 184 // the client's.
184 void SetLastPingDay(const std::string& extension_id, const base::Time& time); 185 void SetLastPingDay(const std::string& extension_id, const base::Time& time);
185 186
186 // Similar to the 2 above, but for the extensions blacklist. 187 // Similar to the 2 above, but for the extensions blacklist.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 518
518 // Weak pointer, owned by Profile. 519 // Weak pointer, owned by Profile.
519 ExtensionPrefValueMap* extension_pref_value_map_; 520 ExtensionPrefValueMap* extension_pref_value_map_;
520 521
521 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 522 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
522 523
523 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 524 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
524 }; 525 };
525 526
526 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 527 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698