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_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROMECAST_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROMECAST_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 int render_view_id, | 43 int render_view_id, |
44 int cert_error, | 44 int cert_error, |
45 const net::SSLInfo& ssl_info, | 45 const net::SSLInfo& ssl_info, |
46 const GURL& request_url, | 46 const GURL& request_url, |
47 content::ResourceType resource_type, | 47 content::ResourceType resource_type, |
48 bool overridable, | 48 bool overridable, |
49 bool strict_enforcement, | 49 bool strict_enforcement, |
50 bool expired_previous_decision, | 50 bool expired_previous_decision, |
51 const base::Callback<void(bool)>& callback, | 51 const base::Callback<void(bool)>& callback, |
52 content::CertificateRequestResultType* result) OVERRIDE; | 52 content::CertificateRequestResultType* result) OVERRIDE; |
| 53 virtual void SelectClientCertificate( |
| 54 int render_process_id, |
| 55 int render_frame_id, |
| 56 const net::HttpNetworkSession* network_session, |
| 57 net::SSLCertRequestInfo* cert_request_info, |
| 58 const base::Callback<void(net::X509Certificate*)>& callback) OVERRIDE; |
53 virtual bool CanCreateWindow( | 59 virtual bool CanCreateWindow( |
54 const GURL& opener_url, | 60 const GURL& opener_url, |
55 const GURL& opener_top_level_frame_url, | 61 const GURL& opener_top_level_frame_url, |
56 const GURL& source_origin, | 62 const GURL& source_origin, |
57 WindowContainerType container_type, | 63 WindowContainerType container_type, |
58 const GURL& target_url, | 64 const GURL& target_url, |
59 const content::Referrer& referrer, | 65 const content::Referrer& referrer, |
60 WindowOpenDisposition disposition, | 66 WindowOpenDisposition disposition, |
61 const blink::WebWindowFeatures& features, | 67 const blink::WebWindowFeatures& features, |
62 bool user_gesture, | 68 bool user_gesture, |
63 bool opener_suppressed, | 69 bool opener_suppressed, |
64 content::ResourceContext* context, | 70 content::ResourceContext* context, |
65 int render_process_id, | 71 int render_process_id, |
66 int opener_id, | 72 int opener_id, |
67 bool* no_javascript_access) OVERRIDE; | 73 bool* no_javascript_access) OVERRIDE; |
68 virtual content::DevToolsManagerDelegate* | 74 virtual content::DevToolsManagerDelegate* |
69 GetDevToolsManagerDelegate() OVERRIDE; | 75 GetDevToolsManagerDelegate() OVERRIDE; |
70 virtual void GetAdditionalMappedFilesForChildProcess( | 76 virtual void GetAdditionalMappedFilesForChildProcess( |
71 const base::CommandLine& command_line, | 77 const base::CommandLine& command_line, |
72 int child_process_id, | 78 int child_process_id, |
73 content::FileDescriptorInfo* mappings) OVERRIDE; | 79 content::FileDescriptorInfo* mappings) OVERRIDE; |
74 | 80 |
75 private: | 81 private: |
| 82 net::X509Certificate* SelectClientCertificateOnIOThread( |
| 83 GURL requesting_url); |
| 84 |
76 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 85 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
77 | 86 |
78 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 87 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
79 }; | 88 }; |
80 | 89 |
81 } // namespace shell | 90 } // namespace shell |
82 } // namespace chromecast | 91 } // namespace chromecast |
83 | 92 |
84 #endif // CHROMECAST_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 93 #endif // CHROMECAST_SHELL_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |