page_node_impl_describer.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2020 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. #ifndef COMPONENTS_PERFORMANCE_MANAGER_GRAPH_PAGE_NODE_IMPL_DESCRIBER_H_
  5. #define COMPONENTS_PERFORMANCE_MANAGER_GRAPH_PAGE_NODE_IMPL_DESCRIBER_H_
  6. #include "components/performance_manager/public/graph/graph.h"
  7. #include "components/performance_manager/public/graph/node_data_describer.h"
  8. namespace performance_manager {
  9. // Describes the state of of a PageNodeImpl for human consumption.
  10. class PageNodeImplDescriber : public GraphOwned,
  11. public NodeDataDescriberDefaultImpl {
  12. public:
  13. PageNodeImplDescriber();
  14. ~PageNodeImplDescriber() override;
  15. PageNodeImplDescriber(const PageNodeImplDescriber&) = delete;
  16. PageNodeImplDescriber& operator=(const PageNodeImplDescriber&) = delete;
  17. // GraphOwned implementation:
  18. void OnPassedToGraph(Graph* graph) override;
  19. void OnTakenFromGraph(Graph* graph) override;
  20. // NodeDataDescriber implementation:
  21. base::Value DescribePageNodeData(const PageNode* page_node) const override;
  22. };
  23. } // namespace performance_manager
  24. #endif // COMPONENTS_PERFORMANCE_MANAGER_GRAPH_PAGE_NODE_IMPL_DESCRIBER_H_