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

Side by Side Diff: Source/modules/mediasource/MediaSourceRegistry.cpp

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ASSERT(isMainThread()); 50 ASSERT(isMainThread());
51 51
52 MediaSource* source = static_cast<MediaSource*>(registrable); 52 MediaSource* source = static_cast<MediaSource*>(registrable);
53 source->addedToRegistry(); 53 source->addedToRegistry();
54 m_mediaSources.set(url.string(), source); 54 m_mediaSources.set(url.string(), source);
55 } 55 }
56 56
57 void MediaSourceRegistry::unregisterURL(const KURL& url) 57 void MediaSourceRegistry::unregisterURL(const KURL& url)
58 { 58 {
59 ASSERT(isMainThread()); 59 ASSERT(isMainThread());
60 PersistentHeapHashMap<String, Member<MediaSource> >::iterator iter = m_media Sources.find(url.string()); 60 PersistentHeapHashMap<String, Member<MediaSource>>::iterator iter = m_mediaS ources.find(url.string());
61 if (iter == m_mediaSources.end()) 61 if (iter == m_mediaSources.end())
62 return; 62 return;
63 63
64 MediaSource* source = iter->value; 64 MediaSource* source = iter->value;
65 m_mediaSources.remove(iter); 65 m_mediaSources.remove(iter);
66 source->removedFromRegistry(); 66 source->removedFromRegistry();
67 } 67 }
68 68
69 URLRegistrable* MediaSourceRegistry::lookup(const String& url) 69 URLRegistrable* MediaSourceRegistry::lookup(const String& url)
70 { 70 {
71 ASSERT(isMainThread()); 71 ASSERT(isMainThread());
72 return m_mediaSources.get(url); 72 return m_mediaSources.get(url);
73 } 73 }
74 74
75 MediaSourceRegistry::MediaSourceRegistry() 75 MediaSourceRegistry::MediaSourceRegistry()
76 { 76 {
77 HTMLMediaSource::setRegistry(this); 77 HTMLMediaSource::setRegistry(this);
78 } 78 }
79 79
80 } // namespace blink 80 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698