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..4be56e0f3a8904a624113a7e0917a2f19c1e039f |
--- /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: |
+ virtual void ExtractRequestInfoDetails( |
+ const content::ResourceRequestInfo* info, |
+ int* tab_id, |
+ int* window_id) 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_ |