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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BluetoothRemoteGATTCharacteristic_h 5 #ifndef BluetoothRemoteGATTCharacteristic_h
6 #define BluetoothRemoteGATTCharacteristic_h 6 #define BluetoothRemoteGATTCharacteristic_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/ActiveDOMObject.h" 9 #include "core/dom/ActiveDOMObject.h"
10 #include "core/dom/DOMArrayPiece.h" 10 #include "core/dom/DOMArrayPiece.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is a 28 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is a
29 // basic data element that provides further information about a peripheral's 29 // basic data element that provides further information about a peripheral's
30 // service. 30 // service.
31 // 31 //
32 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are hand led by 32 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are hand led by
33 // CallbackPromiseAdapter templatized with this class. See this class's 33 // CallbackPromiseAdapter templatized with this class. See this class's
34 // "Interface required by CallbackPromiseAdapter" section and the 34 // "Interface required by CallbackPromiseAdapter" section and the
35 // CallbackPromiseAdapter class comments. 35 // CallbackPromiseAdapter class comments.
36 class BluetoothRemoteGATTCharacteristic final 36 class BluetoothRemoteGATTCharacteristic final
37 : public RefCountedGarbageCollectedEventTargetWithInlineData<BluetoothRemote GATTCharacteristic> 37 : public EventTargetWithInlineData
38 , public ActiveDOMObject 38 , public ActiveDOMObject
39 , public WebBluetoothRemoteGATTCharacteristic { 39 , public WebBluetoothRemoteGATTCharacteristic {
40 USING_PRE_FINALIZER(BluetoothRemoteGATTCharacteristic, dispose); 40 USING_PRE_FINALIZER(BluetoothRemoteGATTCharacteristic, dispose);
41 DEFINE_WRAPPERTYPEINFO(); 41 DEFINE_WRAPPERTYPEINFO();
42 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(BluetoothRemoteGATTCharacteristic) ; 42 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(BluetoothRemoteGATTCharacteristic) ;
43 USING_GARBAGE_COLLECTED_MIXIN(BluetoothRemoteGATTCharacteristic); 43 USING_GARBAGE_COLLECTED_MIXIN(BluetoothRemoteGATTCharacteristic);
44 public: 44 public:
45 explicit BluetoothRemoteGATTCharacteristic(ExecutionContext*, PassOwnPtr<Web BluetoothRemoteGATTCharacteristicInit>); 45 explicit BluetoothRemoteGATTCharacteristic(ExecutionContext*, PassOwnPtr<Web BluetoothRemoteGATTCharacteristicInit>);
46 46
47 // Interface required by CallbackPromiseAdapter. 47 // Interface required by CallbackPromiseAdapter.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 91 private:
92 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; 92 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic;
93 bool m_stopped; 93 bool m_stopped;
94 Member<BluetoothCharacteristicProperties> m_properties; 94 Member<BluetoothCharacteristicProperties> m_properties;
95 Member<DOMDataView> m_value; 95 Member<DOMDataView> m_value;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // BluetoothRemoteGATTCharacteristic_h 100 #endif // BluetoothRemoteGATTCharacteristic_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698