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

Side by Side Diff: public/platform/WebRTCConfiguration.h

Issue 462843003: Cleanup namespace usage in public/platform/{Web[P-W]*,linux/*}.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebPrivatePtr.h ('k') | public/platform/WebRTCDTMFSenderHandler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #ifndef WebRTCConfiguration_h 31 #ifndef WebRTCConfiguration_h
32 #define WebRTCConfiguration_h 32 #define WebRTCConfiguration_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebNonCopyable.h" 35 #include "WebNonCopyable.h"
36 #include "WebPrivatePtr.h" 36 #include "WebPrivatePtr.h"
37 #include "WebVector.h" 37 #include "WebVector.h"
38 38
39 namespace blink { 39 namespace blink {
40
40 class RTCIceServer; 41 class RTCIceServer;
41 class RTCConfiguration; 42 class RTCConfiguration;
42 }
43
44 namespace blink {
45 class WebString; 43 class WebString;
46 class WebURL; 44 class WebURL;
47 45
48 class WebRTCICEServer { 46 class WebRTCICEServer {
49 public: 47 public:
50 WebRTCICEServer() { } 48 WebRTCICEServer() { }
51 WebRTCICEServer(const WebRTCICEServer& other) { assign(other); } 49 WebRTCICEServer(const WebRTCICEServer& other) { assign(other); }
52 ~WebRTCICEServer() { reset(); } 50 ~WebRTCICEServer() { reset(); }
53 51
54 WebRTCICEServer& operator=(const WebRTCICEServer& other) 52 WebRTCICEServer& operator=(const WebRTCICEServer& other)
55 { 53 {
56 assign(other); 54 assign(other);
57 return *this; 55 return *this;
58 } 56 }
59 57
60 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServer&); 58 BLINK_PLATFORM_EXPORT void assign(const WebRTCICEServer&);
61 59
62 BLINK_PLATFORM_EXPORT void reset(); 60 BLINK_PLATFORM_EXPORT void reset();
63 bool isNull() const { return m_private.isNull(); } 61 bool isNull() const { return m_private.isNull(); }
64 62
65 BLINK_PLATFORM_EXPORT WebURL uri() const; 63 BLINK_PLATFORM_EXPORT WebURL uri() const;
66 BLINK_PLATFORM_EXPORT WebString username() const; 64 BLINK_PLATFORM_EXPORT WebString username() const;
67 BLINK_PLATFORM_EXPORT WebString credential() const; 65 BLINK_PLATFORM_EXPORT WebString credential() const;
68 66
69 #if INSIDE_BLINK 67 #if INSIDE_BLINK
70 BLINK_PLATFORM_EXPORT WebRTCICEServer(const WTF::PassRefPtr<blink::RTCIceSer ver>&); 68 BLINK_PLATFORM_EXPORT WebRTCICEServer(const WTF::PassRefPtr<RTCIceServer>&);
71 #endif 69 #endif
72 70
73 private: 71 private:
74 WebPrivatePtr<blink::RTCIceServer> m_private; 72 WebPrivatePtr<RTCIceServer> m_private;
75 }; 73 };
76 74
77 enum WebRTCIceTransports { 75 enum WebRTCIceTransports {
78 WebRTCIceTransportsNone, 76 WebRTCIceTransportsNone,
79 WebRTCIceTransportsRelay, 77 WebRTCIceTransportsRelay,
80 WebRTCIceTransportsAll 78 WebRTCIceTransportsAll
81 }; 79 };
82 80
83 class WebRTCConfiguration { 81 class WebRTCConfiguration {
84 public: 82 public:
(...skipping 11 matching lines...) Expand all
96 94
97 BLINK_PLATFORM_EXPORT void reset(); 95 BLINK_PLATFORM_EXPORT void reset();
98 bool isNull() const { return m_private.isNull(); } 96 bool isNull() const { return m_private.isNull(); }
99 97
100 BLINK_PLATFORM_EXPORT size_t numberOfServers() const; 98 BLINK_PLATFORM_EXPORT size_t numberOfServers() const;
101 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const; 99 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const;
102 100
103 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; 101 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const;
104 102
105 #if INSIDE_BLINK 103 #if INSIDE_BLINK
106 BLINK_PLATFORM_EXPORT WebRTCConfiguration(const WTF::PassRefPtr<blink::RTCCo nfiguration>&); 104 BLINK_PLATFORM_EXPORT WebRTCConfiguration(const WTF::PassRefPtr<RTCConfigura tion>&);
107 #endif 105 #endif
108 106
109 private: 107 private:
110 WebPrivatePtr<blink::RTCConfiguration> m_private; 108 WebPrivatePtr<RTCConfiguration> m_private;
111 }; 109 };
112 110
113 } // namespace blink 111 } // namespace blink
114 112
115 #endif // WebRTCConfiguration_h 113 #endif // WebRTCConfiguration_h
OLDNEW
« no previous file with comments | « public/platform/WebPrivatePtr.h ('k') | public/platform/WebRTCDTMFSenderHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698