OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Constants used for the WebRequest API. | 5 // Constants used for the WebRequest API. |
6 | 6 |
7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 namespace extension_webrequest_api_constants { | 11 namespace extension_webrequest_api_constants { |
12 | 12 |
13 // Keys. | 13 // Keys. |
14 extern const char kErrorKey[]; | 14 extern const char kErrorKey[]; |
15 extern const char kIpKey[]; | 15 extern const char kIpKey[]; |
16 extern const char kMethodKey[]; | 16 extern const char kMethodKey[]; |
17 extern const char kRedirectUrlKey[]; | 17 extern const char kRedirectUrlKey[]; |
18 extern const char kRequestIdKey[]; | 18 extern const char kRequestIdKey[]; |
19 extern const char kStatusCodeKey[]; | 19 extern const char kStatusCodeKey[]; |
20 extern const char kTabIdKey[]; | 20 extern const char kTabIdKey[]; |
21 extern const char kTimeStampKey[]; | 21 extern const char kTimeStampKey[]; |
22 extern const char kTypeKey[]; | 22 extern const char kTypeKey[]; |
23 extern const char kUrlKey[]; | 23 extern const char kUrlKey[]; |
24 | 24 |
25 // Events. | 25 // Events. |
26 extern const char kOnBeforeRedirect[]; | 26 extern const char kOnBeforeRedirect[]; |
27 extern const char kOnBeforeRequest[]; | 27 extern const char kOnBeforeRequest[]; |
| 28 extern const char kOnBeforeSendHeaders[]; |
28 extern const char kOnCompleted[]; | 29 extern const char kOnCompleted[]; |
29 extern const char kOnErrorOccurred[]; | 30 extern const char kOnErrorOccurred[]; |
30 extern const char kOnHeadersReceived[]; | 31 extern const char kOnHeadersReceived[]; |
31 extern const char kOnRequestSent[]; | 32 extern const char kOnRequestSent[]; |
32 | 33 |
33 } // namespace extension_webrequest_api_constants | 34 } // namespace extension_webrequest_api_constants |
34 | 35 |
35 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ | 36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_CONSTANTS_H_ |
OLD | NEW |