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

Side by Side Diff: Source/platform/mediastream/MediaStreamCenter.cpp

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 MediaStreamCenter::MediaStreamCenter() 58 MediaStreamCenter::MediaStreamCenter()
59 : m_private(adoptPtr(blink::Platform::current()->createMediaStreamCenter(thi s))) 59 : m_private(adoptPtr(blink::Platform::current()->createMediaStreamCenter(thi s)))
60 { 60 {
61 } 61 }
62 62
63 MediaStreamCenter::~MediaStreamCenter() 63 MediaStreamCenter::~MediaStreamCenter()
64 { 64 {
65 } 65 }
66 66
67 bool MediaStreamCenter::getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSo urcesRequest> request) 67 bool MediaStreamCenter::getMediaStreamTrackSources(PassRefPtrWillBeRawPtr<MediaS treamTrackSourcesRequest> request)
68 { 68 {
69 return m_private && m_private->getMediaStreamTrackSources(request); 69 return m_private && m_private->getMediaStreamTrackSources(request);
70 } 70 }
71 71
72 void MediaStreamCenter::didSetMediaStreamTrackEnabled(MediaStreamComponent* comp onent) 72 void MediaStreamCenter::didSetMediaStreamTrackEnabled(MediaStreamComponent* comp onent)
73 { 73 {
74 if (m_private) { 74 if (m_private) {
75 if (component->enabled()) { 75 if (component->enabled()) {
76 m_private->didEnableMediaStreamTrack(component); 76 m_private->didEnableMediaStreamTrack(component);
77 } else { 77 } else {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 { 145 {
146 MediaStreamDescriptor* stream = webStream; 146 MediaStreamDescriptor* stream = webStream;
147 MediaStreamDescriptorClient* client = stream->client(); 147 MediaStreamDescriptorClient* client = stream->client();
148 if (client) 148 if (client)
149 client->streamEnded(); 149 client->streamEnded();
150 else 150 else
151 stream->setEnded(); 151 stream->setEnded();
152 } 152 }
153 153
154 } // namespace WebCore 154 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/mediastream/MediaStreamCenter.h ('k') | Source/platform/mediastream/MediaStreamTrackSourcesRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698