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

Unified Diff: chrome/browser/privacy_blacklist/blacklist_manager.h

Issue 501082: Implement delaying resource requests until privacy blacklists are ready. (Closed)
Patch Set: don't get stuck on errors Created 10 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/privacy_blacklist/blacklist_manager.h
diff --git a/chrome/browser/privacy_blacklist/blacklist_manager.h b/chrome/browser/privacy_blacklist/blacklist_manager.h
index 5d6e97b487f962ad07d18a0d2e9ce3d2602e90cf..1ababd6a359d88c4bc4417d8cde1b975980c6f89 100644
--- a/chrome/browser/privacy_blacklist/blacklist_manager.h
+++ b/chrome/browser/privacy_blacklist/blacklist_manager.h
@@ -70,6 +70,7 @@ class BlacklistManager
// Compile all persistent blacklists to one binary blacklist stored on disk.
void CompileBlacklist();
void DoCompileBlacklist(const std::vector<FilePath>& source_blacklists);
+ void OnBlacklistCompilationReadErrors(const std::vector<string16>& errors);
void OnBlacklistCompilationFinished(bool success);
// Read all blacklists from disk (the compiled one and also the transient
@@ -80,6 +81,10 @@ class BlacklistManager
void UpdatePublishedCompiledBlacklist(Blacklist* blacklist);
void OnBlacklistReadFinished(bool success);
+ // Sets the |compiled_blacklist_| to NULL to indicate that the blacklist is
+ // not ready.
+ void ResetPublishedCompiledBlacklist();
+
// True after the first blacklist read has finished (regardless of success).
// Used to avoid an infinite loop.
bool first_read_finished_;
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist_listener_unittest.cc ('k') | chrome/browser/privacy_blacklist/blacklist_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698