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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h

Issue 12491012: Improved extension activity logging for the chrome.webRequest API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add activity log enabled check, and create constants for fields in the activity log Created 7 years, 8 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/web_request/web_request_activitylog_constants.h
diff --git a/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h b/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..2aca04dcf2b5cc309ad1d3de5e7b814bc1846dee
--- /dev/null
+++ b/chrome/browser/extensions/api/web_request/web_request_activitylog_constants.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
Matt Perry 2013/04/12 19:09:18 Sorry to be a pain, but I think these files actual
mvrable 2013/04/12 19:54:21 I relocated these files an updated the patch. I'm
Matt Perry 2013/04/12 19:55:55 Yep, sounds good. Thanks!
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Constants used when describing request modifications via the WebRequest API
+// in the activity log.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_ACTIVITYLOG_CONSTANTS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_ACTIVITYLOG_CONSTANTS_H_
+
+namespace extension_web_request_activitylog_constants {
+
+// Keys used in the dictionary summarizing an EventResponseDelta for the
+// extension activity log.
+extern const char kCancelKey[];
+extern const char kNewUrlKey[];
+extern const char kModifiedRequestHeadersKey[];
+extern const char kDeletedRequestHeadersKey[];
+extern const char kAddedRequestHeadersKey[];
+extern const char kDeletedResponseHeadersKey[];
+extern const char kAuthCredentialsKey[];
+extern const char kResponseCookieModificationsKey[];
+
+// Keys and values used for describing cookie modifications.
+extern const char kCookieModificationTypeKey[];
+extern const char kCookieModificationAdd[];
+extern const char kCookieModificationEdit[];
+extern const char kCookieModificationRemove[];
+extern const char kCookieFilterNameKey[];
+extern const char kCookieFilterDomainKey[];
+extern const char kCookieModNameKey[];
+extern const char kCookieModDomainKey[];
+
+} // namespace extension_web_request_activitylog_constants
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_ACTIVITYLOG_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698