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 // 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; | 28 class Value; |
| 29 class DictionaryValue; |
29 } | 30 } |
30 | 31 |
31 namespace content { | 32 namespace content { |
32 class RenderProcessHost; | 33 class RenderProcessHost; |
33 } | 34 } |
34 | 35 |
35 namespace extensions { | 36 namespace extensions { |
36 class Extension; | 37 class Extension; |
37 } | 38 } |
38 | 39 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 356 |
356 // Stores a |content::ResourceType| representation in |types| if |type_str| is | 357 // Stores a |content::ResourceType| representation in |types| if |type_str| is |
357 // a resource type handled by the web request API. Returns true in case of | 358 // a resource type handled by the web request API. Returns true in case of |
358 // success. | 359 // success. |
359 bool ParseResourceType(const std::string& type_str, | 360 bool ParseResourceType(const std::string& type_str, |
360 std::vector<content::ResourceType>* types); | 361 std::vector<content::ResourceType>* types); |
361 | 362 |
362 } // namespace extension_web_request_api_helpers | 363 } // namespace extension_web_request_api_helpers |
363 | 364 |
364 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 365 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
OLD | NEW |