1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37

content / test / test_page.h [blame]

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_TEST_TEST_PAGE_H_
#define CONTENT_TEST_TEST_PAGE_H_

#include <optional>

#include "content/browser/renderer_host/page_impl.h"
#include "url/gurl.h"

namespace content {

class PageDelegate;
class RenderFrameHostImpl;

class TestPage : public PageImpl {
 public:
  TestPage(RenderFrameHostImpl& rfh, PageDelegate& delegate);

  TestPage(const TestPage&) = delete;
  TestPage& operator=(const TestPage&) = delete;

  ~TestPage() override;

  const std::optional<GURL>& GetManifestUrl() const override;

  void UpdateManifestUrl(const GURL& manifest_url) override;

 private:
  std::optional<GURL> manifest_url_;
};

}  // namespace content

#endif  // CONTENT_TEST_TEST_PAGE_H_