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/declarative_webrequest/request_stage.h" | |
19 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" | 18 #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h" |
20 #include "chrome/browser/extensions/api/web_request/web_request_permissions.h" | 19 #include "chrome/browser/extensions/api/web_request/web_request_permissions.h" |
21 #include "content/public/common/resource_type.h" | 20 #include "content/public/common/resource_type.h" |
| 21 #include "extensions/browser/api/declarative_webrequest/request_stage.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; |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // function. | 520 // function. |
521 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; | 521 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; |
522 virtual bool RunSync() OVERRIDE; | 522 virtual bool RunSync() OVERRIDE; |
523 }; | 523 }; |
524 | 524 |
525 // Send updates to |host| with information about what webRequest-related | 525 // Send updates to |host| with information about what webRequest-related |
526 // extensions are installed. | 526 // extensions are installed. |
527 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); | 527 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); |
528 | 528 |
529 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 529 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |