OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h
" | 5 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h
" |
6 | 6 |
7 #include "extensions/browser/api/web_request/web_request_api_constants.h" | 7 #include "extensions/browser/api/web_request/web_request_api_constants.h" |
| 8 #include "extensions/browser/api/web_request/web_request_event_details.h" |
8 | 9 |
9 namespace keys = extension_web_request_api_constants; | 10 namespace keys = extension_web_request_api_constants; |
10 | 11 |
11 namespace extensions { | 12 namespace extensions { |
12 | 13 |
13 WebRequestEventRouterDelegate::WebRequestEventRouterDelegate() { | 14 WebRequestEventRouterDelegate::WebRequestEventRouterDelegate() { |
14 } | 15 } |
15 | 16 |
16 WebRequestEventRouterDelegate::~WebRequestEventRouterDelegate() { | 17 WebRequestEventRouterDelegate::~WebRequestEventRouterDelegate() { |
17 } | 18 } |
18 void WebRequestEventRouterDelegate::ExtractExtraRequestDetails( | 19 void WebRequestEventRouterDelegate::ExtractExtraRequestDetails( |
19 const net::URLRequest* request, | 20 const net::URLRequest* request, |
20 base::DictionaryValue* out) { | 21 WebRequestEventDetails* out) { |
21 out->SetInteger(keys::kTabIdKey, -1); | 22 out->SetInteger(keys::kTabIdKey, -1); |
22 } | 23 } |
23 | 24 |
24 bool WebRequestEventRouterDelegate::OnGetMatchingListenersImplCheck( | 25 bool WebRequestEventRouterDelegate::OnGetMatchingListenersImplCheck( |
25 int tab_id, | 26 int tab_id, |
26 int window_id, | 27 int window_id, |
27 const net::URLRequest* request) { | 28 const net::URLRequest* request) { |
28 return false; | 29 return false; |
29 } | 30 } |
30 | 31 |
31 } // namespace extensions | 32 } // namespace extensions |
OLD | NEW |