Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / web_request / chrome_extension_web_request_event_router_delegate.h
1 // Copyright 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_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h"
10 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h"
11
12 class ChromeExtensionWebRequestEventRouterDelegate :
13   public extensions::WebRequestEventRouterDelegate {
14  public:
15   ChromeExtensionWebRequestEventRouterDelegate();
16   ~ChromeExtensionWebRequestEventRouterDelegate() override;
17
18   // WebRequestEventRouterDelegate implementation.
19   void ExtractExtraRequestDetails(net::URLRequest* request,
20                                   base::DictionaryValue* out) override;
21   bool OnGetMatchingListenersImplCheck(int tab_id,
22                                        int window_id,
23                                        net::URLRequest* request) override;
24   void LogExtensionActivity(content::BrowserContext* browser_context,
25                             bool is_incognito,
26                             const std::string& extension_id,
27                             const GURL& url,
28                             const std::string& api_call,
29                             scoped_ptr<base::DictionaryValue> details) override;
30 };
31
32 #endif  // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_CHROME_EXTENSION_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_