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

Unified Diff: chrome/browser/extensions/api/web_request/chrome_extra_request_params.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: chrome/browser/extensions/api/web_request/chrome_extra_request_params.h
diff --git a/chrome/browser/extensions/api/web_request/chrome_extra_request_params.h b/chrome/browser/extensions/api/web_request/chrome_extra_request_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..3dca604ae64cf28742e50311ed0d750b8dc5e57e
--- /dev/null
+++ b/chrome/browser/extensions/api/web_request/chrome_extra_request_params.h
@@ -0,0 +1,30 @@
+// 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_EXTRA_REQUEST_PARAMS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTRA_REQUEST_PARAMS_H_
+
+#include "extensions/browser/api/web_request/extra_request_params.h"
+
+class ChromeExtraRequestParams : public ExtraRequestParams{
+ public:
+ ChromeExtraRequestParams();
+ explicit ChromeExtraRequestParams(const ChromeExtraRequestParams& params);
+ virtual ~ChromeExtraRequestParams();
+
+ // ExtraRequestParams implementations:
+ virtual bool OnInitFromValueCheck(
+ const base::DictionaryValue& value) OVERRIDE;
+ virtual bool OnGetMatchingListenersImplCheck(
+ net::URLRequest* request) const OVERRIDE;
+
+ int tab_id() const { return tab_id_; }
+ int window_id() const { return window_id_; }
+
+ private:
+ int tab_id_;
+ int window_id_;
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTRA_REQUEST_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698