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

Side by Side Diff: extensions/browser/api/web_request/web_request_event_router_delegate.h

Issue 615583003: Introduce NetworkDelegate's implementation in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // A delegate class of WebRequestApi that are not a part of chrome. 28 // A delegate class of WebRequestApi that are not a part of chrome.
29 class WebRequestEventRouterDelegate { 29 class WebRequestEventRouterDelegate {
30 public: 30 public:
31 WebRequestEventRouterDelegate(); 31 WebRequestEventRouterDelegate();
32 virtual ~WebRequestEventRouterDelegate(); 32 virtual ~WebRequestEventRouterDelegate();
33 33
34 // Looks up the tab and window ID for a given request. 34 // Looks up the tab and window ID for a given request.
35 // Called on the IO thread. 35 // Called on the IO thread.
36 virtual void ExtractExtraRequestDetails( 36 virtual void ExtractExtraRequestDetails(
37 net::URLRequest* request, base::DictionaryValue* out) = 0; 37 net::URLRequest* request, base::DictionaryValue* out);
38 38
39 // Called to check extra parameters (e.g., tab_id, windown_id) when filtering 39 // Called to check extra parameters (e.g., tab_id, windown_id) when filtering
40 // event listeners. 40 // event listeners.
41 virtual bool OnGetMatchingListenersImplCheck( 41 virtual bool OnGetMatchingListenersImplCheck(
42 int tab_id, int window_id, net::URLRequest* request); 42 int tab_id, int window_id, net::URLRequest* request);
43 43
44 // Logs an extension action. 44 // Logs an extension action.
45 virtual void LogExtensionActivity( 45 virtual void LogExtensionActivity(
46 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
47 bool is_incognito, 47 bool is_incognito,
48 const std::string& extension_id, 48 const std::string& extension_id,
49 const GURL& url, 49 const GURL& url,
50 const std::string& api_call, 50 const std::string& api_call,
51 scoped_ptr<base::DictionaryValue> details) = 0; 51 scoped_ptr<base::DictionaryValue> details) {};
52 52
53 DISALLOW_COPY_AND_ASSIGN(WebRequestEventRouterDelegate); 53 DISALLOW_COPY_AND_ASSIGN(WebRequestEventRouterDelegate);
54 }; 54 };
55 55
56 } // namespace extensions 56 } // namespace extensions
57 57
58 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_ H_ 58 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_ROUTER_DELEGATE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698