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

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: nits 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..06b63b981c6cbb14739e2c3af381f9e6edd6807b
--- /dev/null
+++ b/chrome/browser/extensions/api/web_request/chrome_extension_web_request_event_router_delegate.h
@@ -0,0 +1,41 @@
+// Copyright 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 implementation.
+ virtual void ExtractExtraRequestDetails(
+ net::URLRequest* request, base::DictionaryValue* out) OVERRIDE;
+ virtual bool OnGetMatchingListenersImplCheck(
+ int tab_id, int window_id, net::URLRequest* request) OVERRIDE;
+ virtual void LogExtensionActivity(
+ void* browser_context_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* browser_context_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