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

Unified Diff: chrome/browser/privacy_blacklist/blacklist.cc

Issue 159199: Load Multiple Blacklists... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist.h ('k') | chrome/browser/privacy_blacklist/blacklist_io.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/privacy_blacklist/blacklist.cc
===================================================================
--- chrome/browser/privacy_blacklist/blacklist.cc (revision 21552)
+++ chrome/browser/privacy_blacklist/blacklist.cc (working copy)
@@ -22,6 +22,23 @@
} // namespace
+const unsigned int Blacklist::kBlockAll = 1;
+const unsigned int Blacklist::kDontSendCookies = 1 << 1;
+const unsigned int Blacklist::kDontStoreCookies = 1 << 2;
+const unsigned int Blacklist::kDontPersistCookies = 1 << 3;
+const unsigned int Blacklist::kDontSendReferrer = 1 << 4;
+const unsigned int Blacklist::kDontSendUserAgent = 1 << 5;
+const unsigned int Blacklist::kBlockByType = 1 << 6;
+const unsigned int Blacklist::kBlockUnsecure = 1 << 7;
+const unsigned int Blacklist::kBlockRequest = kBlockAll | kBlockUnsecure;
+const unsigned int Blacklist::kBlockResponse = kBlockByType;
+const unsigned int Blacklist::kModifySentHeaders =
+ kDontSendCookies | kDontSendUserAgent | kDontSendReferrer;
+const unsigned int Blacklist::kModifyReceivedHeaders =
+ kDontPersistCookies | kDontStoreCookies;
+const unsigned int Blacklist::kFilterByHeaders =
+ kModifyReceivedHeaders | kBlockByType;
+
// Value is not important, here just that the object has an address.
const void* const Blacklist::kRequestDataKey = 0;
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist.h ('k') | chrome/browser/privacy_blacklist/blacklist_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698