Index: third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h |
diff --git a/third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h b/third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..878935a3f816517a1aaa1c04e1d3549f64685f90 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef FrameResourceCoordinator_h |
+#define FrameResourceCoordinator_h |
+ |
+#include "platform/heap/Handle.h" |
+#include "services/resource_coordinator/public/interfaces/coordination_unit.mojom-blink.h" |
+ |
+namespace blink { |
+ |
+class InterfaceProvider; |
+ |
+class PLATFORM_EXPORT FrameResourceCoordinator final |
+ : public GarbageCollectedFinalized<FrameResourceCoordinator> { |
+ WTF_MAKE_NONCOPYABLE(FrameResourceCoordinator); |
+ |
+ public: |
+ static FrameResourceCoordinator* create(InterfaceProvider* interfaceProvider); |
+ virtual ~FrameResourceCoordinator(); |
+ |
+ DECLARE_TRACE(); |
+ |
+ private: |
+ explicit FrameResourceCoordinator(InterfaceProvider* interfaceProvider); |
+ |
+ resource_coordinator::mojom::blink::CoordinationUnitPtr m_service; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // FrameResourceCoordinator_h |