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

Side by Side Diff: Source/modules/webmidi/MIDIAccess.h

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class MIDIOutput; 48 class MIDIOutput;
49 class MIDIOutputMap; 49 class MIDIOutputMap;
50 50
51 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient { 51 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient {
52 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>); 52 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M IDIAccess>);
53 DEFINE_WRAPPERTYPEINFO(); 53 DEFINE_WRAPPERTYPEINFO();
54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); 54 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess);
55 public: 55 public:
56 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext) 56 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext * executionContext)
57 { 57 {
58 MIDIAccess* access = adoptRefCountedGarbageCollectedWillBeNoop(new MIDIA ccess(accessor, sysexEnabled, ports, executionContext)); 58 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu tionContext);
59 access->suspendIfNeeded(); 59 access->suspendIfNeeded();
60 return access; 60 return access;
61 } 61 }
62 virtual ~MIDIAccess(); 62 virtual ~MIDIAccess();
63 63
64 MIDIInputMap* inputs() const; 64 MIDIInputMap* inputs() const;
65 MIDIOutputMap* outputs() const; 65 MIDIOutputMap* outputs() const;
66 66
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
(...skipping 28 matching lines...) Expand all
97 97
98 OwnPtr<MIDIAccessor> m_accessor; 98 OwnPtr<MIDIAccessor> m_accessor;
99 bool m_sysexEnabled; 99 bool m_sysexEnabled;
100 HeapVector<Member<MIDIInput> > m_inputs; 100 HeapVector<Member<MIDIInput> > m_inputs;
101 HeapVector<Member<MIDIOutput> > m_outputs; 101 HeapVector<Member<MIDIOutput> > m_outputs;
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // MIDIAccess_h 106 #endif // MIDIAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698