| 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 24 matching lines...) Expand all Loading... |
| 35 class MediaPipelineDeviceParams; | 35 class MediaPipelineDeviceParams; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace shell { | 38 namespace shell { |
| 39 | 39 |
| 40 class CastBrowserMainParts; | 40 class CastBrowserMainParts; |
| 41 class URLRequestContextFactory; | 41 class URLRequestContextFactory; |
| 42 | 42 |
| 43 class CastContentBrowserClient: public content::ContentBrowserClient { | 43 class CastContentBrowserClient: public content::ContentBrowserClient { |
| 44 public: | 44 public: |
| 45 CastContentBrowserClient(); | 45 // Creates an implementation of CastContentBrowserClient. Platform should |
| 46 // link in an implementation as needed. |
| 47 static scoped_ptr<CastContentBrowserClient> Create(); |
| 48 |
| 46 ~CastContentBrowserClient() override; | 49 ~CastContentBrowserClient() override; |
| 47 | 50 |
| 48 // Appends extra command line arguments before launching a new process. | 51 // Appends extra command line arguments before launching a new process. |
| 49 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line); | 52 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line); |
| 50 | 53 |
| 51 // Returns any BrowserMessageFilters from the platform implementation that | 54 // Returns any BrowserMessageFilters from the platform implementation that |
| 52 // should be added when launching a new render process. | 55 // should be added when launching a new render process. |
| 53 std::vector<scoped_refptr<content::BrowserMessageFilter>> | 56 std::vector<scoped_refptr<content::BrowserMessageFilter>> |
| 54 PlatformGetBrowserMessageFilters(); | 57 PlatformGetBrowserMessageFilters(); |
| 55 | 58 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void GetAdditionalMappedFilesForChildProcess( | 115 void GetAdditionalMappedFilesForChildProcess( |
| 113 const base::CommandLine& command_line, | 116 const base::CommandLine& command_line, |
| 114 int child_process_id, | 117 int child_process_id, |
| 115 content::FileDescriptorInfo* mappings) override; | 118 content::FileDescriptorInfo* mappings) override; |
| 116 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) | 119 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) |
| 117 content::ExternalVideoSurfaceContainer* | 120 content::ExternalVideoSurfaceContainer* |
| 118 OverrideCreateExternalVideoSurfaceContainer( | 121 OverrideCreateExternalVideoSurfaceContainer( |
| 119 content::WebContents* web_contents) override; | 122 content::WebContents* web_contents) override; |
| 120 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) | 123 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) |
| 121 | 124 |
| 125 protected: |
| 126 CastContentBrowserClient(); |
| 127 |
| 122 private: | 128 private: |
| 123 void AddNetworkHintsMessageFilter(int render_process_id, | 129 void AddNetworkHintsMessageFilter(int render_process_id, |
| 124 net::URLRequestContext* context); | 130 net::URLRequestContext* context); |
| 125 | 131 |
| 126 net::X509Certificate* SelectClientCertificateOnIOThread( | 132 net::X509Certificate* SelectClientCertificateOnIOThread( |
| 127 GURL requesting_url, | 133 GURL requesting_url, |
| 128 int render_process_id); | 134 int render_process_id); |
| 129 | 135 |
| 130 scoped_ptr<::media::AudioManagerFactory> PlatformCreateAudioManagerFactory(); | 136 scoped_ptr<::media::AudioManagerFactory> PlatformCreateAudioManagerFactory(); |
| 131 | 137 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 146 | 152 |
| 147 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 153 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 148 | 154 |
| 149 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 155 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 150 }; | 156 }; |
| 151 | 157 |
| 152 } // namespace shell | 158 } // namespace shell |
| 153 } // namespace chromecast | 159 } // namespace chromecast |
| 154 | 160 |
| 155 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 161 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |