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

Side by Side Diff: extensions/browser/api/extensions_api_client.cc

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 #include "extensions/browser/api/extensions_api_client.h" 5 #include "extensions/browser/api/extensions_api_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "extensions/browser/api/web_request/web_request_event_router_delegate.h "
8 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h" 9 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h"
9 #include "extensions/browser/guest_view/web_view/web_view_permission_helper_dele gate.h" 10 #include "extensions/browser/guest_view/web_view/web_view_permission_helper_dele gate.h"
10 11
11 namespace extensions { 12 namespace extensions {
12 class AppViewGuestDelegate; 13 class AppViewGuestDelegate;
13 14
14 namespace { 15 namespace {
15 ExtensionsAPIClient* g_instance = NULL; 16 ExtensionsAPIClient* g_instance = NULL;
16 } // namespace 17 } // namespace
17 18
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 51 }
51 52
52 WebViewPermissionHelperDelegate* ExtensionsAPIClient:: 53 WebViewPermissionHelperDelegate* ExtensionsAPIClient::
53 CreateWebViewPermissionHelperDelegate( 54 CreateWebViewPermissionHelperDelegate(
54 WebViewPermissionHelper* web_view_permission_helper) const { 55 WebViewPermissionHelper* web_view_permission_helper) const {
55 return new WebViewPermissionHelperDelegate(web_view_permission_helper); 56 return new WebViewPermissionHelperDelegate(web_view_permission_helper);
56 } 57 }
57 58
58 WebRequestEventRouterDelegate* 59 WebRequestEventRouterDelegate*
59 ExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const { 60 ExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const {
60 return NULL; 61 return new WebRequestEventRouterDelegate();
61 } 62 }
62 63
63 scoped_refptr<ContentRulesRegistry> 64 scoped_refptr<ContentRulesRegistry>
64 ExtensionsAPIClient::CreateContentRulesRegistry( 65 ExtensionsAPIClient::CreateContentRulesRegistry(
65 content::BrowserContext* browser_context, 66 content::BrowserContext* browser_context,
66 RulesCacheDelegate* cache_delegate) const { 67 RulesCacheDelegate* cache_delegate) const {
67 return scoped_refptr<ContentRulesRegistry>(); 68 return scoped_refptr<ContentRulesRegistry>();
68 } 69 }
69 70
70 } // namespace extensions 71 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/api/web_request/web_request_event_router_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698