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

Side by Side Diff: media/base/media_resource.cc

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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
« no previous file with comments | « media/base/media_resource.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/base/media_resource.h" 5 #include "media/base/media_resource.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 MediaResource::MediaResource() {} 9 const int MediaResource::kInvalidRemoteId = 0;
10
11 MediaResource::MediaResource() : remote_id_(kInvalidRemoteId) {}
10 12
11 MediaResource::~MediaResource() {} 13 MediaResource::~MediaResource() {}
12 14
13 MediaUrlParams MediaResource::GetMediaUrlParams() const { 15 MediaUrlParams MediaResource::GetMediaUrlParams() const {
14 NOTREACHED(); 16 NOTREACHED();
15 return MediaUrlParams{GURL(), GURL()}; 17 return MediaUrlParams{GURL(), GURL()};
16 } 18 }
17 19
18 MediaResource::Type MediaResource::GetType() const { 20 MediaResource::Type MediaResource::GetType() const {
19 return STREAM; 21 return STREAM;
20 } 22 }
21 23
24 int32_t MediaResource::GetRemoteId() const {
25 return remote_id_;
26 }
27
22 } // namespace media 28 } // namespace media
OLDNEW
« no previous file with comments | « media/base/media_resource.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698