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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTRA_REQUEST_PARAMS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTRA_REQUEST_PARAMS_H_
7
8 #include "extensions/browser/api/web_request/extra_request_params.h"
9
10 class ChromeExtraRequestParams : public ExtraRequestParams{
11 public:
12 ChromeExtraRequestParams();
13 explicit ChromeExtraRequestParams(const ChromeExtraRequestParams& params);
14 virtual ~ChromeExtraRequestParams();
15
16 // ExtraRequestParams implementations:
17 virtual bool OnInitFromValueCheck(
18 const base::DictionaryValue& value) OVERRIDE;
19 virtual bool OnGetMatchingListenersImplCheck(
20 net::URLRequest* request) const OVERRIDE;
21
22 int tab_id() const { return tab_id_; }
23 int window_id() const { return window_id_; }
24
25 private:
26 int tab_id_;
27 int window_id_;
28 };
29
30 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTRA_REQUEST_PARAMS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698