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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" | 17 #include "chrome/browser/extensions/api/declarative/rules_registry_service.h" |
18 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" | |
19 #include "chrome/browser/extensions/api/web_request/web_request_permissions.h" | |
20 #include "content/public/common/resource_type.h" | 18 #include "content/public/common/resource_type.h" |
21 #include "extensions/browser/api/declarative_webrequest/request_stage.h" | 19 #include "extensions/browser/api/declarative_webrequest/request_stage.h" |
| 20 #include "extensions/browser/api/web_request/web_request_api_helpers.h" |
| 21 #include "extensions/browser/api/web_request/web_request_permissions.h" |
22 #include "extensions/browser/browser_context_keyed_api_factory.h" | 22 #include "extensions/browser/browser_context_keyed_api_factory.h" |
23 #include "extensions/browser/event_router.h" | 23 #include "extensions/browser/event_router.h" |
24 #include "extensions/browser/extension_function.h" | 24 #include "extensions/browser/extension_function.h" |
25 #include "extensions/common/url_pattern_set.h" | 25 #include "extensions/common/url_pattern_set.h" |
26 #include "ipc/ipc_sender.h" | 26 #include "ipc/ipc_sender.h" |
27 #include "net/base/completion_callback.h" | 27 #include "net/base/completion_callback.h" |
28 #include "net/base/network_delegate.h" | 28 #include "net/base/network_delegate.h" |
29 #include "net/http/http_request_headers.h" | 29 #include "net/http/http_request_headers.h" |
30 | 30 |
31 class ExtensionWebRequestTimeTracker; | 31 class ExtensionWebRequestTimeTracker; |
32 class GURL; | 32 class GURL; |
33 | 33 |
34 namespace base { | 34 namespace base { |
35 class DictionaryValue; | 35 class DictionaryValue; |
36 class ListValue; | 36 class ListValue; |
37 class StringValue; | 37 class StringValue; |
38 } | 38 } |
39 | 39 |
40 namespace content { | 40 namespace content { |
41 class BrowserContext; | 41 class BrowserContext; |
42 class RenderProcessHost; | |
43 } | 42 } |
44 | 43 |
45 namespace net { | 44 namespace net { |
46 class AuthCredentials; | 45 class AuthCredentials; |
47 class AuthChallengeInfo; | 46 class AuthChallengeInfo; |
48 class HttpRequestHeaders; | 47 class HttpRequestHeaders; |
49 class HttpResponseHeaders; | 48 class HttpResponseHeaders; |
50 class URLRequest; | 49 class URLRequest; |
51 } | 50 } |
52 | 51 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 514 |
516 // ExtensionFunction: | 515 // ExtensionFunction: |
517 virtual void GetQuotaLimitHeuristics( | 516 virtual void GetQuotaLimitHeuristics( |
518 extensions::QuotaLimitHeuristics* heuristics) const OVERRIDE; | 517 extensions::QuotaLimitHeuristics* heuristics) const OVERRIDE; |
519 // Handle quota exceeded gracefully: Only warn the user but still execute the | 518 // Handle quota exceeded gracefully: Only warn the user but still execute the |
520 // function. | 519 // function. |
521 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; | 520 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; |
522 virtual bool RunSync() OVERRIDE; | 521 virtual bool RunSync() OVERRIDE; |
523 }; | 522 }; |
524 | 523 |
525 // Send updates to |host| with information about what webRequest-related | |
526 // extensions are installed. | |
527 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); | |
528 | |
529 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 524 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |