OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 // Internal representation of the extraInfoSpec parameter on webRequest | 93 // Internal representation of the extraInfoSpec parameter on webRequest |
94 // events, used to specify extra information to be included with network | 94 // events, used to specify extra information to be included with network |
95 // events. | 95 // events. |
96 struct ExtraInfoSpec { | 96 struct ExtraInfoSpec { |
97 enum Flags { | 97 enum Flags { |
98 REQUEST_HEADERS = 1<<0, | 98 REQUEST_HEADERS = 1<<0, |
99 RESPONSE_HEADERS = 1<<1, | 99 RESPONSE_HEADERS = 1<<1, |
100 BLOCKING = 1<<2, | 100 BLOCKING = 1<<2, |
101 ASYNC_BLOCKING = 1<<3, | 101 ASYNC_BLOCKING = 1<<3, |
| 102 REQUEST_POST_DATA = 1<<4, |
102 }; | 103 }; |
103 | 104 |
104 static bool InitFromValue(const base::ListValue& value, | 105 static bool InitFromValue(const base::ListValue& value, |
105 int* extra_info_spec); | 106 int* extra_info_spec); |
106 }; | 107 }; |
107 | 108 |
108 // Contains an extension's response to a blocking event. | 109 // Contains an extension's response to a blocking event. |
109 struct EventResponse { | 110 struct EventResponse { |
110 EventResponse(const std::string& extension_id, | 111 EventResponse(const std::string& extension_id, |
111 const base::Time& extension_install_time); | 112 const base::Time& extension_install_time); |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 virtual void OnQuotaExceeded() OVERRIDE; | 420 virtual void OnQuotaExceeded() OVERRIDE; |
420 virtual bool RunImpl() OVERRIDE; | 421 virtual bool RunImpl() OVERRIDE; |
421 }; | 422 }; |
422 | 423 |
423 // Send updates to |host| with information about what webRequest-related | 424 // Send updates to |host| with information about what webRequest-related |
424 // extensions are installed. | 425 // extensions are installed. |
425 // TODO(mpcomplete): remove. http://crbug.com/100411 | 426 // TODO(mpcomplete): remove. http://crbug.com/100411 |
426 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); | 427 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); |
427 | 428 |
428 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 429 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |