summaryrefslogtreecommitdiffstats
path: root/chrome/browser/privacy_blacklist/blacklist.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/privacy_blacklist/blacklist.h')
-rw-r--r--chrome/browser/privacy_blacklist/blacklist.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/chrome/browser/privacy_blacklist/blacklist.h b/chrome/browser/privacy_blacklist/blacklist.h
index 4c36d08..a4b6b9ba 100644
--- a/chrome/browser/privacy_blacklist/blacklist.h
+++ b/chrome/browser/privacy_blacklist/blacklist.h
@@ -32,24 +32,21 @@ class FilePath;
class Blacklist {
public:
// Filter attributes (more to come):
- static const unsigned int kBlockAll = 1;
- static const unsigned int kDontSendCookies = 1 << 1;
- static const unsigned int kDontStoreCookies = 1 << 2;
- static const unsigned int kDontPersistCookies = 1 << 3;
- static const unsigned int kDontSendReferrer = 1 << 4;
- static const unsigned int kDontSendUserAgent = 1 << 5;
- static const unsigned int kBlockByType = 1 << 6;
- static const unsigned int kBlockUnsecure = 1 << 7;
+ static const unsigned int kBlockAll;
+ static const unsigned int kDontSendCookies;
+ static const unsigned int kDontStoreCookies;
+ static const unsigned int kDontPersistCookies;
+ static const unsigned int kDontSendReferrer;
+ static const unsigned int kDontSendUserAgent;
+ static const unsigned int kBlockByType;
+ static const unsigned int kBlockUnsecure;
// Aggregate filter types:
- static const unsigned int kBlockRequest = kBlockAll | kBlockUnsecure;
- static const unsigned int kBlockResponse = kBlockByType;
- static const unsigned int kModifySentHeaders =
- kDontSendCookies | kDontSendUserAgent | kDontSendReferrer;
- static const unsigned int kModifyReceivedHeaders =
- kDontPersistCookies | kDontStoreCookies;
- static const unsigned int kFilterByHeaders = kModifyReceivedHeaders |
- kBlockByType;
+ static const unsigned int kBlockRequest;
+ static const unsigned int kBlockResponse;
+ static const unsigned int kModifySentHeaders;
+ static const unsigned int kModifyReceivedHeaders;
+ static const unsigned int kFilterByHeaders;
// Key used to access data attached to URLRequest objects.
static const void* const kRequestDataKey;