Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: chromecast/browser/cast_content_browser_client.h

Issue 1814263002: [chromecast] Start deprecating MediaMessageLoop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed weak_ptr deref issue Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 std::vector<std::string>* additional_schemes) override; 152 std::vector<std::string>* additional_schemes) override;
153 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) 153 #if defined(OS_ANDROID) && defined(VIDEO_HOLE)
154 content::ExternalVideoSurfaceContainer* 154 content::ExternalVideoSurfaceContainer*
155 OverrideCreateExternalVideoSurfaceContainer( 155 OverrideCreateExternalVideoSurfaceContainer(
156 content::WebContents* web_contents) override; 156 content::WebContents* web_contents) override;
157 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) 157 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE)
158 158
159 protected: 159 protected:
160 CastContentBrowserClient(); 160 CastContentBrowserClient();
161 161
162 // Returns the task runner that must be used for media IO.
163 // TODO(alokp): We might need to make it public as we convert more callsites
164 // using MediaMessageLoop directly.
165 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner();
166
162 #if !defined(OS_ANDROID) 167 #if !defined(OS_ANDROID)
163 virtual scoped_refptr<media::CmaMediaPipelineClient> 168 virtual scoped_refptr<media::CmaMediaPipelineClient>
164 CreateCmaMediaPipelineClient(); 169 CreateCmaMediaPipelineClient();
165 #endif // !defined(OS_ANDROID) 170 #endif // !defined(OS_ANDROID)
166 171
167 URLRequestContextFactory* url_request_context_factory() const { 172 URLRequestContextFactory* url_request_context_factory() const {
168 return url_request_context_factory_.get(); 173 return url_request_context_factory_.get();
169 } 174 }
170 175
171 private: 176 private:
(...skipping 21 matching lines...) Expand all
193 198
194 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 199 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
195 200
196 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 201 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
197 }; 202 };
198 203
199 } // namespace shell 204 } // namespace shell
200 } // namespace chromecast 205 } // namespace chromecast
201 206
202 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 207 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | chromecast/browser/media/cma_message_filter_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698