OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
Ken Rockot(use gerrit already)
2014/09/19 20:52:27
New files should use new copyright notice style (n
Xi Han
2014/09/19 22:05:56
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ | |
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/values.h" | |
11 #include "url/gurl.h" | |
Ken Rockot(use gerrit already)
2014/09/19 20:52:27
you can just forward-declare GURL instead of inclu
Xi Han
2014/09/19 22:05:56
Done.
| |
12 | |
13 namespace content { | |
14 class ResourceRequestInfo; | |
Ken Rockot(use gerrit already)
2014/09/19 20:52:27
not used
Xi Han
2014/09/19 22:05:56
Removed.
| |
15 } // namespace content | |
Ken Rockot(use gerrit already)
2014/09/19 20:52:28
FYI I don't think it's necessary to include closin
Xi Han
2014/09/19 22:05:56
I agree:)
| |
16 | |
17 namespace net { | |
18 class URLRequest; | |
19 } // namspace net | |
20 | |
21 namespace extension_web_request_api_helpers { | |
22 struct EventResponseDelta; | |
23 } // extension_web_request_api_helpers | |
24 | |
25 namespace extensions { | |
26 | |
27 // A delegate class of WebRequestApi that are not a part of chrome. | |
28 class WebRequestEventRouterDelegate { | |
29 public: | |
30 WebRequestEventRouterDelegate(); | |
31 virtual ~WebRequestEventRouterDelegate(); | |
32 | |
33 // Looks up the tab and window ID for a given request. | |
34 // Called on the IO thread. | |
35 virtual void ExtractExtraRequestDetails( | |
36 net::URLRequest* request, base::DictionaryValue* out) = 0; | |
37 | |
38 // Called to check extra parameters (e.g., tab_id, windown_id) when filtering | |
39 // event listeners. | |
40 virtual bool OnGetMachingListernersImplCheck( | |
41 int tab_id, int window_id, net::URLRequest* request); | |
42 | |
43 // Logs an extension action. | |
44 virtual void LogExtensionActivity( | |
45 void* profile_id, | |
Ken Rockot(use gerrit already)
2014/09/19 20:52:28
Could you change this to browser_context_id? And a
Fady Samuel
2014/09/19 20:56:26
IIRC, we are on the IO thread here, but I'm not 10
Xi Han
2014/09/19 22:05:56
Done.
| |
46 bool is_incognito, | |
47 const std::string& extension_id, | |
48 const GURL& url, | |
49 const std::string& api_calli, | |
50 const extension_web_request_api_helpers::EventResponseDelta& delta) = 0; | |
51 | |
52 DISALLOW_COPY_AND_ASSIGN(WebRequestEventRouterDelegate); | |
53 }; | |
54 | |
55 } // namespace extensions | |
56 | |
57 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_ H_ | |
OLD | NEW |