Chromium Code Reviews| Index: chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h |
| diff --git a/chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h b/chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2b85e7ce6ebeb352fbedb55db12da19d2002a305 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/values.h" |
| +#include "extensions/browser/api/web_request/web_request_event_router_delegate.h" |
| + |
| +class ChromeExtensionWebRequestEventRouterDelegate : |
| + public extensions::WebRequestEventRouterDelegate { |
| + public: |
| + ChromeExtensionWebRequestEventRouterDelegate(); |
| + virtual ~ChromeExtensionWebRequestEventRouterDelegate(); |
| + |
| + // WebRequestEventRouterDelegate implementations: |
|
Ken Rockot(use gerrit already)
2014/09/19 20:52:27
nit: "implementation."
Xi Han
2014/09/19 22:05:55
Done.
|
| + virtual void ExtractExtraRequestDetails( |
| + net::URLRequest* request, base::DictionaryValue* out) OVERRIDE; |
| + virtual bool OnGetMachingListernersImplCheck( |
| + int tab_id, int window_id, net::URLRequest* request) OVERRIDE; |
| + virtual void LogExtensionActivity( |
| + void* profile_id, |
| + bool is_incognito, |
| + const std::string& extension_id, |
| + const GURL& url, |
| + const std::string& api_calli, |
| + const extension_web_request_api_helpers::EventResponseDelta& delta) |
| + OVERRIDE; |
| + private: |
| + void LogExtensionActivityInternal( |
| + void* profile_id, |
| + bool is_incognito, |
| + const std::string& extension_id, |
| + const GURL& url, |
| + const std::string& api_calli, |
| + scoped_ptr<base::DictionaryValue> details); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ |