| 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 CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 7 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
| 8 #define CHROME_BROWSER_EXTENSIONS_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 <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "extensions/browser/warning_set.h" | 18 #include "extensions/browser/warning_set.h" |
| 19 #include "net/base/auth.h" | 19 #include "net/base/auth.h" |
| 20 #include "net/http/http_request_headers.h" | 20 #include "net/http/http_request_headers.h" |
| 21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class ListValue; | 25 class ListValue; |
| 26 class Value; | 26 class Value; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { |
| 30 class RenderProcessHost; |
| 31 } |
| 32 |
| 29 namespace extensions { | 33 namespace extensions { |
| 30 class Extension; | 34 class Extension; |
| 31 } | 35 } |
| 32 | 36 |
| 33 namespace net { | 37 namespace net { |
| 34 class BoundNetLog; | 38 class BoundNetLog; |
| 35 class URLRequest; | 39 class URLRequest; |
| 36 } | 40 } |
| 37 | 41 |
| 38 namespace extension_web_request_api_helpers { | 42 namespace extension_web_request_api_helpers { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 void ClearCacheOnNavigation(); | 309 void ClearCacheOnNavigation(); |
| 306 | 310 |
| 307 // Tells renderer processes that the web request or declarative web request | 311 // Tells renderer processes that the web request or declarative web request |
| 308 // API has been used by |extension| in browser_context |browser_context_id| to | 312 // API has been used by |extension| in browser_context |browser_context_id| to |
| 309 // collect UMA statistics on Page Load Times. Needs to be called on the UI | 313 // collect UMA statistics on Page Load Times. Needs to be called on the UI |
| 310 // thread. | 314 // thread. |
| 311 void NotifyWebRequestAPIUsed( | 315 void NotifyWebRequestAPIUsed( |
| 312 void* browser_context_id, | 316 void* browser_context_id, |
| 313 scoped_refptr<const extensions::Extension> extension); | 317 scoped_refptr<const extensions::Extension> extension); |
| 314 | 318 |
| 319 // Send updates to |host| with information about what webRequest-related |
| 320 // extensions are installed. |
| 321 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); |
| 322 |
| 315 } // namespace extension_web_request_api_helpers | 323 } // namespace extension_web_request_api_helpers |
| 316 | 324 |
| 317 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 325 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
| OLD | NEW |