OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FrameResourceCoordinator_h |
| 6 #define FrameResourceCoordinator_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "services/resource_coordinator/public/interfaces/coordination_unit.mojo
m.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class InterfaceProvider; |
| 14 |
| 15 class PLATFORM_EXPORT FrameResourceCoordinator final |
| 16 : public GarbageCollectedFinalized<FrameResourceCoordinator> { |
| 17 WTF_MAKE_NONCOPYABLE(FrameResourceCoordinator); |
| 18 |
| 19 public: |
| 20 static FrameResourceCoordinator* Create( |
| 21 InterfaceProvider* interface_provider); |
| 22 virtual ~FrameResourceCoordinator(); |
| 23 |
| 24 DECLARE_TRACE(); |
| 25 |
| 26 private: |
| 27 explicit FrameResourceCoordinator(InterfaceProvider* interface_provider); |
| 28 |
| 29 resource_coordinator::mojom::CoordinationUnitPtr service_; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // FrameResourceCoordinator_h |
OLD | NEW |