Chromium Code Reviews| 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..bbf379341199a9cec81158323a4568f055886e0c |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h |
| @@ -0,0 +1,34 @@ |
| +// 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 |
|
haraken
2017/06/02 04:28:30
Add a class-level comment.
|
| + : public GarbageCollectedFinalized<FrameResourceCoordinator> { |
|
haraken
2017/06/02 04:08:08
What functionalities will be added to FrameResourc
lpy
2017/06/02 20:23:52
Done.
|
| + WTF_MAKE_NONCOPYABLE(FrameResourceCoordinator); |
| + |
| + public: |
| + static bool IsEnabled(); |
| + static FrameResourceCoordinator* Create(InterfaceProvider*); |
| + virtual ~FrameResourceCoordinator(); |
| + |
| + DECLARE_TRACE(); |
| + |
| + private: |
| + explicit FrameResourceCoordinator(InterfaceProvider*); |
| + |
| + resource_coordinator::mojom::blink::CoordinationUnitPtr service_; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // FrameResourceCoordinator_h |