Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h

Issue 568583002: Introduce WebRequestEventRouterDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the delegate to WebRequestEventRouterDelegate. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698