Home | History | Annotate | Download | only in web_request
      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   virtual ~ChromeExtensionWebRequestEventRouterDelegate();
     17 
     18   // WebRequestEventRouterDelegate implementation.
     19   virtual void ExtractExtraRequestDetails(
     20     net::URLRequest* request, base::DictionaryValue* out) OVERRIDE;
     21   virtual bool OnGetMatchingListenersImplCheck(
     22     int tab_id, int window_id, net::URLRequest* request) OVERRIDE;
     23   virtual void LogExtensionActivity(
     24     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_
     33