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

Side by Side Diff: Source/platform/mediastream/RTCConfiguration.h

Issue 631803002: Replacing the OVERRIDE with override and FINAL with final (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase issue 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
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 * 7 *
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 21 matching lines...) Expand all
32 #define RTCConfiguration_h 32 #define RTCConfiguration_h
33 33
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/weborigin/KURL.h" 35 #include "platform/weborigin/KURL.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class RTCIceServer FINAL : public GarbageCollectedFinalized<RTCIceServer> { 42 class RTCIceServer final : public GarbageCollectedFinalized<RTCIceServer> {
43 public: 43 public:
44 static RTCIceServer* create(const KURL& uri, const String& username, const S tring& credential) 44 static RTCIceServer* create(const KURL& uri, const String& username, const S tring& credential)
45 { 45 {
46 return new RTCIceServer(uri, username, credential); 46 return new RTCIceServer(uri, username, credential);
47 } 47 }
48 48
49 const KURL& uri() { return m_uri; } 49 const KURL& uri() { return m_uri; }
50 const String& username() { return m_username; } 50 const String& username() { return m_username; }
51 const String& credential() { return m_credential; } 51 const String& credential() { return m_credential; }
52 52
(...skipping 11 matching lines...) Expand all
64 String m_username; 64 String m_username;
65 String m_credential; 65 String m_credential;
66 }; 66 };
67 67
68 enum RTCIceTransports { 68 enum RTCIceTransports {
69 RTCIceTransportsNone, 69 RTCIceTransportsNone,
70 RTCIceTransportsRelay, 70 RTCIceTransportsRelay,
71 RTCIceTransportsAll 71 RTCIceTransportsAll
72 }; 72 };
73 73
74 class RTCConfiguration FINAL : public GarbageCollected<RTCConfiguration> { 74 class RTCConfiguration final : public GarbageCollected<RTCConfiguration> {
75 public: 75 public:
76 static RTCConfiguration* create() { return new RTCConfiguration(); } 76 static RTCConfiguration* create() { return new RTCConfiguration(); }
77 77
78 void appendServer(RTCIceServer* server) { m_servers.append(server); } 78 void appendServer(RTCIceServer* server) { m_servers.append(server); }
79 size_t numberOfServers() { return m_servers.size(); } 79 size_t numberOfServers() { return m_servers.size(); }
80 RTCIceServer* server(size_t index) { return m_servers[index].get(); } 80 RTCIceServer* server(size_t index) { return m_servers[index].get(); }
81 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic eTransports; } 81 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic eTransports; }
82 RTCIceTransports iceTransports() { return m_iceTransports; } 82 RTCIceTransports iceTransports() { return m_iceTransports; }
83 83
84 void trace(Visitor* visitor) { visitor->trace(m_servers); } 84 void trace(Visitor* visitor) { visitor->trace(m_servers); }
85 85
86 private: 86 private:
87 RTCConfiguration() : m_iceTransports(RTCIceTransportsAll) { } 87 RTCConfiguration() : m_iceTransports(RTCIceTransportsAll) { }
88 88
89 HeapVector<Member<RTCIceServer> > m_servers; 89 HeapVector<Member<RTCIceServer> > m_servers;
90 RTCIceTransports m_iceTransports; 90 RTCIceTransports m_iceTransports;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // RTCConfiguration_h 95 #endif // RTCConfiguration_h
OLDNEW
« no previous file with comments | « Source/platform/mediastream/MediaStreamSource.h ('k') | Source/platform/mediastream/RTCOfferOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698