OLD | NEW |
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 CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 CastContentBrowserClient(); | 165 CastContentBrowserClient(); |
166 | 166 |
167 URLRequestContextFactory* url_request_context_factory() const { | 167 URLRequestContextFactory* url_request_context_factory() const { |
168 return url_request_context_factory_.get(); | 168 return url_request_context_factory_.get(); |
169 } | 169 } |
170 | 170 |
171 private: | 171 private: |
172 void AddNetworkHintsMessageFilter(int render_process_id, | 172 void AddNetworkHintsMessageFilter(int render_process_id, |
173 net::URLRequestContext* context); | 173 net::URLRequestContext* context); |
174 | 174 |
175 net::X509Certificate* SelectClientCertificateOnIOThread( | 175 void SelectClientCertificateOnIOThread( |
| 176 scoped_ptr<content::ClientCertificateDelegate> delegate, |
176 GURL requesting_url, | 177 GURL requesting_url, |
177 int render_process_id); | 178 int render_process_id); |
178 | 179 |
179 #if !defined(OS_ANDROID) | 180 #if !defined(OS_ANDROID) |
180 // Returns the crash signal FD corresponding to the current process type. | 181 // Returns the crash signal FD corresponding to the current process type. |
181 int GetCrashSignalFD(const base::CommandLine& command_line); | 182 int GetCrashSignalFD(const base::CommandLine& command_line); |
182 | 183 |
183 // Creates a CrashHandlerHost instance for the given process type. | 184 // Creates a CrashHandlerHost instance for the given process type. |
184 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | 185 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( |
185 const std::string& process_type); | 186 const std::string& process_type); |
186 | 187 |
187 // A static cache to hold crash_handlers for each process_type | 188 // A static cache to hold crash_handlers for each process_type |
188 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; | 189 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; |
189 #endif | 190 #endif |
190 | 191 |
191 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 192 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
192 | 193 |
193 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 194 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
194 }; | 195 }; |
195 | 196 |
196 } // namespace shell | 197 } // namespace shell |
197 } // namespace chromecast | 198 } // namespace chromecast |
198 | 199 |
199 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 200 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |