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

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

Issue 8202011: Notify users about certain changes in installed extensions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Change #if false to #if 0 for win compiler. Created 9 years, 2 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) 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Returns base extensions install directory. 149 // Returns base extensions install directory.
150 const FilePath& install_directory() const { return install_directory_; } 150 const FilePath& install_directory() const { return install_directory_; }
151 151
152 // Updates the prefs based on the blacklist. 152 // Updates the prefs based on the blacklist.
153 void UpdateBlacklist(const std::set<std::string>& blacklist_set); 153 void UpdateBlacklist(const std::set<std::string>& blacklist_set);
154 154
155 // Based on extension id, checks prefs to see if it is blacklisted. 155 // Based on extension id, checks prefs to see if it is blacklisted.
156 bool IsExtensionBlacklisted(const std::string& id); 156 bool IsExtensionBlacklisted(const std::string& id);
157 157
158 // Based on extension id, checks prefs to see if it is orphaned.
159 bool IsExtensionOrphaned(const std::string& id);
160
161 // Whether the user has acknowledged an external extension.
162 bool IsExternalExtensionAcknowledged(const std::string& extension_id);
163 void AcknowledgeExternalExtension(const std::string& extension_id);
164
165 // Whether the user has acknowledged a blacklisted extension.
166 bool IsBlacklistedExtensionAcknowledged(const std::string& extension_id);
167 void AcknowledgeBlacklistedExtension(const std::string& extension_id);
168
169 // Whether the user has acknowledged an orphaned extension.
170 bool IsOrphanedExtensionAcknowledged(const std::string& extension_id);
171 void AcknowledgeOrphanedExtension(const std::string& extension_id);
172
173 // Returns true if the extension notification code has already run for the
174 // first time for this profile. Currently we use this flag to mean that any
175 // extensions that would trigger notifications should get silently
176 // acknowledged. This is a fuse. Calling it the first time returns false.
177 // Subsequent calls return true. It's not possible through an API to ever
178 // reset it. Don't call it unless you mean it!
179 bool SetAlertSystemFirstRun();
180
158 // Is the extension with |extension_id| allowed by policy (checking both 181 // Is the extension with |extension_id| allowed by policy (checking both
159 // whitelist and blacklist). 182 // whitelist and blacklist).
160 bool IsExtensionAllowedByPolicy(const std::string& extension_id); 183 bool IsExtensionAllowedByPolicy(const std::string& extension_id);
161 184
162 // Returns the last value set via SetLastPingDay. If there isn't such a 185 // Returns the last value set via SetLastPingDay. If there isn't such a
163 // pref, the returned Time will return true for is_null(). 186 // pref, the returned Time will return true for is_null().
164 base::Time LastPingDay(const std::string& extension_id) const; 187 base::Time LastPingDay(const std::string& extension_id) const;
165 188
166 // The time stored is based on the server's perspective of day start time, not 189 // The time stored is based on the server's perspective of day start time, not
167 // the client's. 190 // the client's.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 516
494 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 517 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
495 518
496 // The URLs of all of the toolstrips. 519 // The URLs of all of the toolstrips.
497 URLList shelf_order_; 520 URLList shelf_order_;
498 521
499 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 522 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
500 }; 523 };
501 524
502 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 525 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_global_error.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698