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