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

Unified Diff: extensions/browser/api/extensions_api_client.h

Issue 568583002: Introduce WebRequestEventRouterDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide tab_id and window_id from extensions. 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: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 08c6e3196ddf3da9e940f3e2185c5d56fb91c110..0d7b27f233dcdc80919cd0406da282421e6ca07b 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -13,6 +13,7 @@
#include "extensions/browser/api/storage/settings_namespace.h"
class GURL;
+class ExtraRequestParams;
template <class T>
class ObserverListThreadSafe;
@@ -32,6 +33,7 @@ class WebViewGuest;
class WebViewGuestDelegate;
class WebViewPermissionHelper;
class WebViewPermissionHelperDelegate;
+class WebRequestEventRouterDelegate;
class SettingsObserver;
class SettingsStorageFactory;
class ValueStoreCache;
@@ -90,6 +92,13 @@ class ExtensionsAPIClient {
const RulesRegistry::WebViewKey& webview_key,
const std::string& event_name);
+ // Creates a delegate for WebRequestEventRouter.
+ virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate()
+ const;
+
+ // Creates extra parameters for a given request, i.e., tab_id, and window_id.
+ virtual ExtraRequestParams* CreateExtraRequestParams() const;
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};

Powered by Google App Engine
This is Rietveld 408576698