OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void OnRequestRedirected(const GURL& redirect_url, | 90 void OnRequestRedirected(const GURL& redirect_url, |
91 net::URLRequest* request, | 91 net::URLRequest* request, |
92 content::ResourceContext* resource_context, | 92 content::ResourceContext* resource_context, |
93 content::ResourceResponse* response) override; | 93 content::ResourceResponse* response) override; |
94 void RequestComplete(net::URLRequest* url_request) override; | 94 void RequestComplete(net::URLRequest* url_request) override; |
95 bool ShouldEnableLoFiMode( | 95 bool ShouldEnableLoFiMode( |
96 const net::URLRequest& url_request, | 96 const net::URLRequest& url_request, |
97 content::ResourceContext* resource_context) override; | 97 content::ResourceContext* resource_context) override; |
98 content::NavigationData* GetNavigationData( | 98 content::NavigationData* GetNavigationData( |
99 net::URLRequest* request) const override; | 99 net::URLRequest* request) const override; |
| 100 std::unique_ptr<net::ClientCertStore> CreateClientCertStore( |
| 101 content::ResourceContext* resource_context) override; |
100 | 102 |
101 // Called on the UI thread. Allows switching out the | 103 // Called on the UI thread. Allows switching out the |
102 // ExternalProtocolHandler::Delegate for testing code. | 104 // ExternalProtocolHandler::Delegate for testing code. |
103 static void SetExternalProtocolHandlerDelegateForTesting( | 105 static void SetExternalProtocolHandlerDelegateForTesting( |
104 ExternalProtocolHandler::Delegate* delegate); | 106 ExternalProtocolHandler::Delegate* delegate); |
105 | 107 |
106 private: | 108 private: |
107 #if defined(ENABLE_EXTENSIONS) | 109 #if defined(ENABLE_EXTENSIONS) |
108 struct StreamTargetInfo { | 110 struct StreamTargetInfo { |
109 std::string extension_id; | 111 std::string extension_id; |
(...skipping 11 matching lines...) Expand all Loading... |
121 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; | 123 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; |
122 #if defined(ENABLE_EXTENSIONS) | 124 #if defined(ENABLE_EXTENSIONS) |
123 scoped_refptr<extensions::UserScriptListener> user_script_listener_; | 125 scoped_refptr<extensions::UserScriptListener> user_script_listener_; |
124 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; | 126 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; |
125 #endif | 127 #endif |
126 | 128 |
127 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 129 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
128 }; | 130 }; |
129 | 131 |
130 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 132 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |