page_agent_views.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2019 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_UI_DEVTOOLS_VIEWS_PAGE_AGENT_VIEWS_H_
  5. #define COMPONENTS_UI_DEVTOOLS_VIEWS_PAGE_AGENT_VIEWS_H_
  6. #include "components/ui_devtools/page_agent.h"
  7. namespace ui_devtools {
  8. class PageAgentViews : public PageAgent {
  9. public:
  10. explicit PageAgentViews(DOMAgent* dom_agent);
  11. PageAgentViews(const PageAgentViews&) = delete;
  12. PageAgentViews& operator=(const PageAgentViews&) = delete;
  13. ~PageAgentViews() override;
  14. // PageAgent:
  15. protocol::Response disable() override;
  16. protocol::Response reload(protocol::Maybe<bool> bypass_cache) override;
  17. protocol::Response getResourceTree(
  18. std::unique_ptr<protocol::Page::FrameResourceTree>* frame_tree) override;
  19. protocol::Response getResourceContent(const protocol::String& in_frameId,
  20. const protocol::String& in_url,
  21. protocol::String* out_content,
  22. bool* out_base64Encoded) override;
  23. bool GetDevtoolsDismissOverrideForTesting() const;
  24. };
  25. } // namespace ui_devtools
  26. #endif // COMPONENTS_UI_DEVTOOLS_VIEWS_PAGE_AGENT_VIEWS_H_