render_frame_host_proxy.cc 985 B

1234567891011121314151617181920212223242526
  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. #include "components/performance_manager/public/render_frame_host_proxy.h"
  5. #include "content/public/browser/render_frame_host.h"
  6. namespace performance_manager {
  7. RenderFrameHostProxy::RenderFrameHostProxy() = default;
  8. RenderFrameHostProxy::~RenderFrameHostProxy() = default;
  9. RenderFrameHostProxy::RenderFrameHostProxy(const RenderFrameHostProxy& other) =
  10. default;
  11. RenderFrameHostProxy& RenderFrameHostProxy::operator=(
  12. const RenderFrameHostProxy& other) = default;
  13. content::RenderFrameHost* RenderFrameHostProxy::Get() const {
  14. return content::RenderFrameHost::FromID(global_frame_routing_id_);
  15. }
  16. RenderFrameHostProxy::RenderFrameHostProxy(
  17. const content::GlobalRenderFrameHostId& global_frame_routing_id)
  18. : global_frame_routing_id_(global_frame_routing_id) {}
  19. } // namespace performance_manager