1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Constants used when describing request modifications via the WebRequest API
6 // in the activity log.
8 #include "extensions/browser/api/activity_log/web_request_constants.h"
10 namespace activity_log_web_request_constants
{
12 // Keys used in the dictionary summarizing an EventResponseDelta for the
13 // extension activity log.
14 const char kCancelKey
[] = "cancel";
15 const char kNewUrlKey
[] = "new_url";
16 const char kModifiedRequestHeadersKey
[] = "modified_request_headers";
17 const char kDeletedRequestHeadersKey
[] = "deleted_request_headers";
18 const char kAddedRequestHeadersKey
[] = "added_request_headers";
19 const char kDeletedResponseHeadersKey
[] = "deleted_response_headers";
20 const char kAuthCredentialsKey
[] = "auth_credentials";
21 const char kResponseCookieModificationsKey
[] = "response_cookie_modifications";
23 // Keys and values used for describing cookie modifications.
24 const char kCookieModificationTypeKey
[] = "type";
25 const char kCookieModificationAdd
[] = "ADD";
26 const char kCookieModificationEdit
[] = "EDIT";
27 const char kCookieModificationRemove
[] = "REMOVE";
28 const char kCookieFilterNameKey
[] = "filter_name";
29 const char kCookieFilterDomainKey
[] = "filter_domain";
30 const char kCookieModNameKey
[] = "mod_name";
31 const char kCookieModDomainKey
[] = "mod_domain";
33 } // namespace activity_log_web_request_constants