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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc

Issue 10447090: Support Cookie modifications in Declarative WebRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 4 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/extensions/api/declarative_webrequest/webrequest_constants.cc
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc b/chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc
index dc84e94eb402f21def32ccdec3cc561660f960d4..8ec9d26abd648e75418885478f142db4141e5879 100644
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_constants.cc
@@ -11,20 +11,34 @@ namespace declarative_webrequest_constants {
const char kOnRequest[] = "declarativeWebRequest.onRequest";
// Keys of dictionaries.
+const char kCookieKey[] = "cookie";
+const char kDirectionKey[] = "direction";
+const char kDomainKey[] = "domain";
+const char kExpiresKey[] = "expires";
+const char kFilterKey[] ="filter";
const char kFromKey[] = "from";
+const char kHttpOnlyKey[] = "httpOnly";
const char kInstanceTypeKey[] = "instanceType";
const char kLowerPriorityThanKey[] = "lowerPriorityThan";
+const char kMaxAgeKey[] = "maxAge";
+const char kModificationKey[] = "modification";
const char kNameKey[] = "name";
+const char kPathKey[] = "path";
const char kRedirectUrlKey[] = "redirectUrl";
const char kResourceTypeKey[] = "resourceType";
+const char kSecureKey[] = "secure";
const char kToKey[] = "to";
const char kUrlKey[] = "url";
const char kValueKey[] = "value";
// Values of dictionaries, in particular instance types
-const char kAddResponseHeaderType[] =
- "declarativeWebRequest.AddResponseHeader";
+const char kAddRequestCookieType[] = "declarativeWebRequest.AddRequestCookie";
+const char kAddResponseCookieType[] = "declarativeWebRequest.AddResponseCookie";
+const char kAddResponseHeaderType[] = "declarativeWebRequest.AddResponseHeader";
const char kCancelRequestType[] = "declarativeWebRequest.CancelRequest";
+const char kEditRequestCookieType[] = "declarativeWebRequest.EditRequestCookie";
+const char kEditResponseCookieType[] =
+ "declarativeWebRequest.EditResponseCookie";
const char kIgnoreRulesType[] = "declarativeWebRequest.IgnoreRules";
const char kRedirectRequestType[] = "declarativeWebRequest.RedirectRequest";
const char kRedirectByRegExType[] =
@@ -33,11 +47,16 @@ const char kRedirectToEmptyDocumentType[] =
"declarativeWebRequest.RedirectToEmptyDocument";
const char kRedirectToTransparentImageType[] =
"declarativeWebRequest.RedirectToTransparentImage";
+const char kRemoveRequestCookieType[] =
+ "declarativeWebRequest.RemoveRequestCookie";
const char kRemoveRequestHeaderType[] =
"declarativeWebRequest.RemoveRequestHeader";
+const char kRemoveResponseCookieType[] =
+ "declarativeWebRequest.RemoveResponseCookie";
const char kRemoveResponseHeaderType[] =
"declarativeWebRequest.RemoveResponseHeader";
const char kRequestMatcherType[] = "declarativeWebRequest.RequestMatcher";
const char kSetRequestHeaderType[] = "declarativeWebRequest.SetRequestHeader";
+
} // namespace declarative_webrequest_constants
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698