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

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

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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 BluetoothSupplement_h 5 #ifndef BluetoothSupplement_h
6 #define BluetoothSupplement_h 6 #define BluetoothSupplement_h
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 17 matching lines...) Expand all
28 28
29 // Returns the WebBluetooth attached to the frame if the frame exists. 29 // Returns the WebBluetooth attached to the frame if the frame exists.
30 // Otherwise returns nullptr. 30 // Otherwise returns nullptr.
31 static WebBluetooth* fromScriptState(ScriptState*); 31 static WebBluetooth* fromScriptState(ScriptState*);
32 // Returns the WebBluetooth attached to the execution context. 32 // Returns the WebBluetooth attached to the execution context.
33 static WebBluetooth* fromExecutionContext(ExecutionContext*); 33 static WebBluetooth* fromExecutionContext(ExecutionContext*);
34 34
35 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
36 36
37 private: 37 private:
38 explicit BluetoothSupplement(WebBluetooth*); 38 BluetoothSupplement(WebBluetooth*, LocalFrame&);
39 39
40 WebBluetooth* m_bluetooth; 40 WebBluetooth* m_bluetooth;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // BluetoothRoutingId_h 45 #endif // BluetoothRoutingId_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698