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_ |