| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 AvailabilityCallbackWrapper_h | 5 #ifndef AvailabilityCallbackWrapper_h |
| 6 #define AvailabilityCallbackWrapper_h | 6 #define AvailabilityCallbackWrapper_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | |
| 11 #include "bindings/core/v8/TraceWrapperMember.h" | 10 #include "bindings/core/v8/TraceWrapperMember.h" |
| 11 #include "platform/bindings/ScriptWrappable.h" |
| 12 #include "platform/heap/GarbageCollected.h" | 12 #include "platform/heap/GarbageCollected.h" |
| 13 #include "platform/wtf/Compiler.h" | 13 #include "platform/wtf/Compiler.h" |
| 14 #include "platform/wtf/Functional.h" | 14 #include "platform/wtf/Functional.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class RemotePlaybackAvailabilityCallback; | 18 class RemotePlaybackAvailabilityCallback; |
| 19 class RemotePlayback; | 19 class RemotePlayback; |
| 20 | 20 |
| 21 // Wraps either a WTF::Closure or RemotePlaybackAvailabilityCallback object | 21 // Wraps either a WTF::Closure or RemotePlaybackAvailabilityCallback object |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // Only one of these callbacks must be set. | 39 // Only one of these callbacks must be set. |
| 40 TraceWrapperMember<RemotePlaybackAvailabilityCallback> bindings_cb_; | 40 TraceWrapperMember<RemotePlaybackAvailabilityCallback> bindings_cb_; |
| 41 std::unique_ptr<WTF::Closure> internal_cb_; | 41 std::unique_ptr<WTF::Closure> internal_cb_; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // AvailabilityCallbackWrapper_h | 46 #endif // AvailabilityCallbackWrapper_h |
| OLD | NEW |