OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_EXTENSION_WEB_REQUEST_E
VENT_ROUTER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E
VENT_ROUTER_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E
VENT_ROUTER_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_E
VENT_ROUTER_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h
" | 10 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h
" |
11 | 11 |
12 class ChromeExtensionWebRequestEventRouterDelegate : | 12 class ChromeExtensionWebRequestEventRouterDelegate : |
13 public extensions::WebRequestEventRouterDelegate { | 13 public extensions::WebRequestEventRouterDelegate { |
14 public: | 14 public: |
15 ChromeExtensionWebRequestEventRouterDelegate(); | 15 ChromeExtensionWebRequestEventRouterDelegate(); |
16 virtual ~ChromeExtensionWebRequestEventRouterDelegate(); | 16 virtual ~ChromeExtensionWebRequestEventRouterDelegate(); |
17 | 17 |
18 // WebRequestEventRouterDelegate implementation. | 18 // WebRequestEventRouterDelegate implementation. |
19 virtual void ExtractExtraRequestDetails( | 19 virtual void ExtractExtraRequestDetails( |
20 net::URLRequest* request, base::DictionaryValue* out) OVERRIDE; | 20 net::URLRequest* request, base::DictionaryValue* out) override; |
21 virtual bool OnGetMatchingListenersImplCheck( | 21 virtual bool OnGetMatchingListenersImplCheck( |
22 int tab_id, int window_id, net::URLRequest* request) OVERRIDE; | 22 int tab_id, int window_id, net::URLRequest* request) override; |
23 virtual void LogExtensionActivity( | 23 virtual void LogExtensionActivity( |
24 content::BrowserContext* browser_context, | 24 content::BrowserContext* browser_context, |
25 bool is_incognito, | 25 bool is_incognito, |
26 const std::string& extension_id, | 26 const std::string& extension_id, |
27 const GURL& url, | 27 const GURL& url, |
28 const std::string& api_call, | 28 const std::string& api_call, |
29 scoped_ptr<base::DictionaryValue> details) OVERRIDE; | 29 scoped_ptr<base::DictionaryValue> details) override; |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUES
T_EVENT_ROUTER_DELEGATE_H_ | 32 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUES
T_EVENT_ROUTER_DELEGATE_H_ |
OLD | NEW |