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

Side by Side Diff: Source/platform/exported/WebRTCStatsResponse.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 11 matching lines...) Expand all
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "public/platform/WebRTCStatsResponse.h" 26 #include "public/platform/WebRTCStatsResponse.h"
27 27
28 #include "platform/mediastream/RTCStatsResponseBase.h" 28 #include "platform/mediastream/RTCStatsResponseBase.h"
29 #include "wtf/PassOwnPtr.h" 29 #include "wtf/PassOwnPtr.h"
30 #include "wtf/text/WTFString.h" 30 #include "wtf/text/WTFString.h"
31 31
32 using namespace blink;
33
34 namespace blink { 32 namespace blink {
35 33
36 WebRTCStatsResponse::WebRTCStatsResponse(RTCStatsResponseBase* request) 34 WebRTCStatsResponse::WebRTCStatsResponse(RTCStatsResponseBase* request)
37 : m_private(request) 35 : m_private(request)
38 { 36 {
39 } 37 }
40 38
41 void WebRTCStatsResponse::assign(const WebRTCStatsResponse& other) 39 void WebRTCStatsResponse::assign(const WebRTCStatsResponse& other)
42 { 40 {
43 m_private = other.m_private; 41 m_private = other.m_private;
44 } 42 }
45 43
46 void WebRTCStatsResponse::reset() 44 void WebRTCStatsResponse::reset()
47 { 45 {
48 m_private.reset(); 46 m_private.reset();
49 } 47 }
50 48
51 WebRTCStatsResponse::operator blink::RTCStatsResponseBase*() const 49 WebRTCStatsResponse::operator RTCStatsResponseBase*() const
52 { 50 {
53 return m_private.get(); 51 return m_private.get();
54 } 52 }
55 53
56 size_t WebRTCStatsResponse::addReport(const WebString& id, const WebString& type , double timestamp) 54 size_t WebRTCStatsResponse::addReport(const WebString& id, const WebString& type , double timestamp)
57 { 55 {
58 ASSERT(!m_private.isNull()); 56 ASSERT(!m_private.isNull());
59 return m_private->addReport(id, type, timestamp); 57 return m_private->addReport(id, type, timestamp);
60 } 58 }
61 59
62 void WebRTCStatsResponse::addStatistic(size_t report, const WebString& name, con st WebString& value) 60 void WebRTCStatsResponse::addStatistic(size_t report, const WebString& name, con st WebString& value)
63 { 61 {
64 ASSERT(!m_private.isNull()); 62 ASSERT(!m_private.isNull());
65 m_private->addStatistic(report, name, value); 63 m_private->addStatistic(report, name, value);
66 } 64 }
67 65
68 } // namespace blink 66 } // namespace blink
69 67
OLDNEW
« no previous file with comments | « Source/platform/exported/WebRTCStatsRequest.cpp ('k') | Source/platform/exported/WebRTCVoidRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698