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

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_api.h

Issue 10694055: Add read-only access to POST data for webRequest's onBeforeRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed, unit tests split Created 8 years, 5 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 unified diff | Download patch
OLDNEW
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
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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 virtual void OnQuotaExceeded() OVERRIDE; 427 virtual void OnQuotaExceeded() OVERRIDE;
427 virtual bool RunImpl() OVERRIDE; 428 virtual bool RunImpl() OVERRIDE;
428 }; 429 };
429 430
430 // Send updates to |host| with information about what webRequest-related 431 // Send updates to |host| with information about what webRequest-related
431 // extensions are installed. 432 // extensions are installed.
432 // TODO(mpcomplete): remove. http://crbug.com/100411 433 // TODO(mpcomplete): remove. http://crbug.com/100411
433 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 434 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
434 435
435 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 436 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698