OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_WEBREQUEST_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <list> |
9 #include <map> | 10 #include <map> |
10 #include <set> | 11 #include <set> |
11 #include <string> | 12 #include <string> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
15 #include "base/time.h" | 16 #include "base/time.h" |
16 #include "chrome/browser/extensions/extension_function.h" | 17 #include "chrome/browser/extensions/extension_function.h" |
17 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/extensions/url_pattern_set.h" | 19 #include "chrome/common/extensions/url_pattern_set.h" |
19 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
20 #include "net/base/completion_callback.h" | 21 #include "net/base/completion_callback.h" |
21 #include "net/base/network_delegate.h" | 22 #include "net/base/network_delegate.h" |
22 #include "net/http/http_request_headers.h" | 23 #include "net/http/http_request_headers.h" |
23 #include "webkit/glue/resource_type.h" | 24 #include "webkit/glue/resource_type.h" |
24 | 25 |
25 class ExtensionInfoMap; | 26 class ExtensionInfoMap; |
26 class ExtensionWebRequestTimeTracker; | 27 class ExtensionWebRequestTimeTracker; |
27 class GURL; | 28 class GURL; |
28 class RenderProcessHost; | 29 class RenderProcessHost; |
29 | 30 |
30 namespace base { | 31 namespace base { |
31 class DictionaryValue; | 32 class DictionaryValue; |
32 class ListValue; | 33 class ListValue; |
33 class StringValue; | |
34 } | |
35 | |
36 namespace extension_webrequest_api_helpers { | |
37 struct EventResponseDelta; | |
38 } | 34 } |
39 | 35 |
40 namespace net { | 36 namespace net { |
41 class AuthCredentials; | 37 class AuthCredentials; |
42 class AuthChallengeInfo; | 38 class AuthChallengeInfo; |
43 class HostPortPair; | |
44 class HttpRequestHeaders; | 39 class HttpRequestHeaders; |
45 class HttpResponseHeaders; | 40 class HttpResponseHeaders; |
46 class URLRequest; | 41 class URLRequest; |
47 } | 42 } |
48 | 43 |
49 // This class observes network events and routes them to the appropriate | 44 // This class observes network events and routes them to the appropriate |
50 // extensions listening to those events. All methods must be called on the IO | 45 // extensions listening to those events. All methods must be called on the IO |
51 // thread unless otherwise specified. | 46 // thread unless otherwise specified. |
52 class ExtensionWebRequestEventRouter { | 47 class ExtensionWebRequestEventRouter { |
53 public: | 48 public: |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // function. | 362 // function. |
368 virtual void OnQuotaExceeded() OVERRIDE; | 363 virtual void OnQuotaExceeded() OVERRIDE; |
369 }; | 364 }; |
370 | 365 |
371 // Send updates to |host| with information about what webRequest-related | 366 // Send updates to |host| with information about what webRequest-related |
372 // extensions are installed. | 367 // extensions are installed. |
373 // TODO(mpcomplete): remove. http://crbug.com/100411 | 368 // TODO(mpcomplete): remove. http://crbug.com/100411 |
374 void SendExtensionWebRequestStatusToHost(RenderProcessHost* host); | 369 void SendExtensionWebRequestStatusToHost(RenderProcessHost* host); |
375 | 370 |
376 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ | 371 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ |
OLD | NEW |