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

Side by Side Diff: Source/modules/mediastream/MediaStreamTrack.cpp

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Ericsson AB. All rights reserved. 3 * Copyright (C) 2011 Ericsson AB. 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 case MediaStreamSource::ReadyStateMuted: 121 case MediaStreamSource::ReadyStateMuted:
122 return "muted"; 122 return "muted";
123 case MediaStreamSource::ReadyStateEnded: 123 case MediaStreamSource::ReadyStateEnded:
124 return "ended"; 124 return "ended";
125 } 125 }
126 126
127 ASSERT_NOT_REACHED(); 127 ASSERT_NOT_REACHED();
128 return String(); 128 return String();
129 } 129 }
130 130
131 void MediaStreamTrack::getSources(ExecutionContext* context, PassOwnPtrWillBeRaw Ptr<MediaStreamTrackSourcesCallback> callback, ExceptionState& exceptionState) 131 void MediaStreamTrack::getSources(ExecutionContext* context, MediaStreamTrackSou rcesCallback* callback, ExceptionState& exceptionState)
132 { 132 {
133 LocalFrame* frame = toDocument(context)->frame(); 133 LocalFrame* frame = toDocument(context)->frame();
134 UserMediaController* userMedia = UserMediaController::from(frame); 134 UserMediaController* userMedia = UserMediaController::from(frame);
135 if (!userMedia) { 135 if (!userMedia) {
136 exceptionState.throwDOMException(NotSupportedError, "No sources controll er available; is this a detached window?"); 136 exceptionState.throwDOMException(NotSupportedError, "No sources controll er available; is this a detached window?");
137 return; 137 return;
138 } 138 }
139 MediaStreamTrackSourcesRequest* request = MediaStreamTrackSourcesRequestImpl ::create(*context, callback); 139 MediaStreamTrackSourcesRequest* request = MediaStreamTrackSourcesRequestImpl ::create(*context, callback);
140 userMedia->requestSources(request); 140 userMedia->requestSources(request);
141 } 141 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return ActiveDOMObject::executionContext(); 233 return ActiveDOMObject::executionContext();
234 } 234 }
235 235
236 void MediaStreamTrack::trace(Visitor* visitor) 236 void MediaStreamTrack::trace(Visitor* visitor)
237 { 237 {
238 visitor->trace(m_registeredMediaStreams); 238 visitor->trace(m_registeredMediaStreams);
239 EventTargetWithInlineData::trace(visitor); 239 EventTargetWithInlineData::trace(visitor);
240 } 240 }
241 241
242 } // namespace blink 242 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrack.h ('k') | Source/modules/mediastream/MediaStreamTrackSourcesCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698