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