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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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) 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 WebCore; 32 using namespace blink;
33 33
34 namespace blink { 34 namespace blink {
35 35
36 WebRTCStatsResponse::WebRTCStatsResponse(RTCStatsResponseBase* request) 36 WebRTCStatsResponse::WebRTCStatsResponse(RTCStatsResponseBase* request)
37 : m_private(request) 37 : m_private(request)
38 { 38 {
39 } 39 }
40 40
41 void WebRTCStatsResponse::assign(const WebRTCStatsResponse& other) 41 void WebRTCStatsResponse::assign(const WebRTCStatsResponse& other)
42 { 42 {
43 m_private = other.m_private; 43 m_private = other.m_private;
44 } 44 }
45 45
46 void WebRTCStatsResponse::reset() 46 void WebRTCStatsResponse::reset()
47 { 47 {
48 m_private.reset(); 48 m_private.reset();
49 } 49 }
50 50
51 WebRTCStatsResponse::operator WebCore::RTCStatsResponseBase*() const 51 WebRTCStatsResponse::operator blink::RTCStatsResponseBase*() const
52 { 52 {
53 return m_private.get(); 53 return m_private.get();
54 } 54 }
55 55
56 size_t WebRTCStatsResponse::addReport(const WebString& id, const WebString& type , double timestamp) 56 size_t WebRTCStatsResponse::addReport(const WebString& id, const WebString& type , double timestamp)
57 { 57 {
58 ASSERT(!m_private.isNull()); 58 ASSERT(!m_private.isNull());
59 return m_private->addReport(id, type, timestamp); 59 return m_private->addReport(id, type, timestamp);
60 } 60 }
61 61
62 void WebRTCStatsResponse::addStatistic(size_t report, const WebString& name, con st WebString& value) 62 void WebRTCStatsResponse::addStatistic(size_t report, const WebString& name, con st WebString& value)
63 { 63 {
64 ASSERT(!m_private.isNull()); 64 ASSERT(!m_private.isNull());
65 m_private->addStatistic(report, name, value); 65 m_private->addStatistic(report, name, value);
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
69 69
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