OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
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 "url/gurl.h" | |
11 | |
12 namespace content { | |
13 class ResourceRequestInfo; | |
14 } | |
15 | |
16 namespace extension_web_request_api_helpers { | |
17 struct EventResponseDelta; | |
18 } | |
19 | |
20 namespace extensions { | |
21 | |
22 // A delegate class of WebRequestApi that are not a part of chrome. | |
23 class WebRequestEventRouterDelegate { | |
24 public: | |
25 WebRequestEventRouterDelegate(); | |
26 virtual ~WebRequestEventRouterDelegate(); | |
27 | |
28 // Looks up the tab and window ID for a given request. | |
29 // Called on the IO thread. | |
30 virtual void ExtractRequestInfoDetails( | |
31 const content::ResourceRequestInfo* info, | |
32 int* tab_id, | |
33 int* window_id) = 0; | |
Fady Samuel
2014/09/12 21:55:40
I wish this information wasn't exposed to extensio
| |
34 | |
35 // Logs an extension action. | |
36 virtual void LogExtensionActivity( | |
37 void* profile_id, | |
38 bool is_incognito, | |
39 const std::string& extension_id, | |
40 const GURL& url, | |
41 const std::string& api_calli, | |
42 const extension_web_request_api_helpers::EventResponseDelta& delta) = 0; | |
43 }; | |
Fady Samuel
2014/09/12 21:55:40
DISALLOW_COPY_AND_ASSIGN?
Xi Han
2014/09/18 16:24:02
Done.
| |
44 | |
45 } // namespace extensions | |
46 | |
47 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_ H_ | |
OLD | NEW |