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

Side by Side Diff: extensions/browser/api/web_request/web_request_api_helpers.h

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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 // Helper classes and functions used for the WebRequest API. 5 // Helper classes and functions used for the WebRequest API.
6 6
7 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ 7 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_
8 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ 8 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_
9 9
10 #include <list> 10 #include <list>
11 #include <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/linked_ptr.h" 16 #include "base/memory/linked_ptr.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "content/public/common/resource_type.h" 19 #include "content/public/common/resource_type.h"
20 #include "extensions/browser/warning_set.h" 20 #include "extensions/browser/warning_set.h"
21 #include "net/base/auth.h" 21 #include "net/base/auth.h"
22 #include "net/http/http_request_headers.h" 22 #include "net/http/http_request_headers.h"
23 #include "net/http/http_response_headers.h" 23 #include "net/http/http_response_headers.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace base { 26 namespace base {
27 class ListValue; 27 class ListValue;
28 class Value;
29 class DictionaryValue; 28 class DictionaryValue;
30 } 29 }
31 30
32 namespace content {
33 class RenderProcessHost;
34 }
35
36 namespace extensions { 31 namespace extensions {
37 class Extension; 32 class Extension;
38 } 33 }
39 34
40 namespace net { 35 namespace net {
41 class NetLogWithSource; 36 class NetLogWithSource;
42 class URLRequest;
43 } 37 }
44 38
45 namespace extension_web_request_api_helpers { 39 namespace extension_web_request_api_helpers {
46 40
47 typedef std::pair<std::string, std::string> ResponseHeader; 41 typedef std::pair<std::string, std::string> ResponseHeader;
48 typedef std::vector<ResponseHeader> ResponseHeaders; 42 typedef std::vector<ResponseHeader> ResponseHeaders;
49 43
50 // Internal representation of the extraInfoSpec parameter on webRequest 44 // Internal representation of the extraInfoSpec parameter on webRequest
51 // events, used to specify extra information to be included with network 45 // events, used to specify extra information to be included with network
52 // events. 46 // events.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 339
346 // Stores a |content::ResourceType| representation in |types| if |type_str| is 340 // Stores a |content::ResourceType| representation in |types| if |type_str| is
347 // a resource type handled by the web request API. Returns true in case of 341 // a resource type handled by the web request API. Returns true in case of
348 // success. 342 // success.
349 bool ParseResourceType(const std::string& type_str, 343 bool ParseResourceType(const std::string& type_str,
350 std::vector<content::ResourceType>* types); 344 std::vector<content::ResourceType>* types);
351 345
352 } // namespace extension_web_request_api_helpers 346 } // namespace extension_web_request_api_helpers
353 347
354 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ 348 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.h ('k') | extensions/browser/api/webcam_private/webcam_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698