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 "base/values.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace content { |
| 14 class ResourceRequestInfo; |
| 15 } // namespace content |
| 16 |
| 17 namespace net { |
| 18 class URLRequest; |
| 19 } // namspace net |
| 20 |
| 21 namespace extension_web_request_api_helpers { |
| 22 struct EventResponseDelta; |
| 23 } |
| 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 // Logs an extension action. |
| 39 virtual void LogExtensionActivity( |
| 40 void* profile_id, |
| 41 bool is_incognito, |
| 42 const std::string& extension_id, |
| 43 const GURL& url, |
| 44 const std::string& api_calli, |
| 45 const extension_web_request_api_helpers::EventResponseDelta& delta) = 0; |
| 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(WebRequestEventRouterDelegate); |
| 48 }; |
| 49 |
| 50 } // namespace extensions |
| 51 |
| 52 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_
H_ |
OLD | NEW |