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: third_party/WebKit/Source/modules/mediastream/MediaStreamRegistry.h

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 10 matching lines...) Expand all
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #ifndef MediaStreamRegistry_h 25 #ifndef MediaStreamRegistry_h
26 #define MediaStreamRegistry_h 26 #define MediaStreamRegistry_h
27 27
28 #include "core/html/URLRegistry.h" 28 #include "core/html/URLRegistry.h"
29 #include "modules/ModulesExport.h" 29 #include "modules/ModulesExport.h"
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "wtf/HashMap.h" 31 #include "platform/wtf/HashMap.h"
32 #include "wtf/text/StringHash.h" 32 #include "platform/wtf/text/StringHash.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class KURL; 36 class KURL;
37 class MediaStreamDescriptor; 37 class MediaStreamDescriptor;
38 38
39 class MODULES_EXPORT MediaStreamRegistry final : public URLRegistry { 39 class MODULES_EXPORT MediaStreamRegistry final : public URLRegistry {
40 public: 40 public:
41 // Returns a single instance of MediaStreamRegistry. 41 // Returns a single instance of MediaStreamRegistry.
42 static MediaStreamRegistry& Registry(); 42 static MediaStreamRegistry& Registry();
43 43
44 // Registers a blob URL referring to the specified stream data. 44 // Registers a blob URL referring to the specified stream data.
45 void RegisterURL(SecurityOrigin*, const KURL&, URLRegistrable*) override; 45 void RegisterURL(SecurityOrigin*, const KURL&, URLRegistrable*) override;
46 void UnregisterURL(const KURL&) override; 46 void UnregisterURL(const KURL&) override;
47 bool Contains(const String&) override; 47 bool Contains(const String&) override;
48 48
49 MediaStreamDescriptor* LookupMediaStreamDescriptor(const String& url); 49 MediaStreamDescriptor* LookupMediaStreamDescriptor(const String& url);
50 50
51 private: 51 private:
52 MediaStreamRegistry(); 52 MediaStreamRegistry();
53 PersistentHeapHashMap<String, Member<MediaStreamDescriptor>> 53 PersistentHeapHashMap<String, Member<MediaStreamDescriptor>>
54 stream_descriptors_; 54 stream_descriptors_;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // MediaStreamRegistry_h 59 #endif // MediaStreamRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698