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

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

Issue 270253004: Enable oilpan in modules/mediasource (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 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 WillBePersistentHeapHashMap<String, RefPtrWillBeMember<MediaSource> >::itera tor iter = m_mediaSources.find(url.string()); 60 PersistentHeapHashMap<String, Member<MediaSource> >::iterator iter = m_media Sources.find(url.string());
61 if (iter == m_mediaSources.end()) 61 if (iter == m_mediaSources.end())
62 return; 62 return;
63 63
64 RefPtrWillBeRawPtr<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 WebCore 80 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698