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

Side by Side Diff: Source/platform/exported/WebMediaStreamTrackSourcesRequest.cpp

Issue 458313005: Cleanup namespace usage from animation to exported in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage from animation to exported in platform/ Created 6 years, 4 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "public/platform/WebMediaStreamTrackSourcesRequest.h" 27 #include "public/platform/WebMediaStreamTrackSourcesRequest.h"
28 28
29 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h" 29 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h"
30 #include "public/platform/WebSourceInfo.h" 30 #include "public/platform/WebSourceInfo.h"
31 #include "wtf/PassOwnPtr.h" 31 #include "wtf/PassOwnPtr.h"
32 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
33 33
34 using namespace blink;
35
36 namespace blink { 34 namespace blink {
37 35
38 namespace { 36 namespace {
39 37
40 class ExtraDataContainer : public MediaStreamTrackSourcesRequest::ExtraData { 38 class ExtraDataContainer : public MediaStreamTrackSourcesRequest::ExtraData {
41 public: 39 public:
42 ExtraDataContainer(PassOwnPtr<WebMediaStreamTrackSourcesRequest::ExtraData> extraData) : m_extraData(extraData) { } 40 ExtraDataContainer(PassOwnPtr<WebMediaStreamTrackSourcesRequest::ExtraData> extraData) : m_extraData(extraData) { }
43 41
44 WebMediaStreamTrackSourcesRequest::ExtraData* extraData() { return m_extraDa ta.get(); } 42 WebMediaStreamTrackSourcesRequest::ExtraData* extraData() { return m_extraDa ta.get(); }
45 43
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return static_cast<ExtraDataContainer*>(data)->extraData(); 82 return static_cast<ExtraDataContainer*>(data)->extraData();
85 } 83 }
86 84
87 void WebMediaStreamTrackSourcesRequest::setExtraData(ExtraData* extraData) 85 void WebMediaStreamTrackSourcesRequest::setExtraData(ExtraData* extraData)
88 { 86 {
89 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData)) )); 87 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData)) ));
90 } 88 }
91 89
92 } // namespace blink 90 } // namespace blink
93 91
OLDNEW
« no previous file with comments | « Source/platform/exported/WebMediaStreamTrack.cpp ('k') | Source/platform/exported/WebPermissionCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698