Don't preload rarely seen large images
[chromium-blink-merge.git] / components / html_viewer / test_html_viewer_impl.h
blob05cc17d08cab190da315e368722b7676332fe281
1 // Copyright 2015 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.
5 #ifndef COMPONENTS_HTML_VIEWER_TEST_HTML_VIEWER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_TEST_HTML_VIEWER_IMPL_H_
8 #include "base/basictypes.h"
9 #include "components/html_viewer/public/interfaces/test_html_viewer.mojom.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
12 namespace blink {
13 class WebFrame;
16 namespace html_viewer {
18 // Caller must ensure that |web_frame| outlives TestHTMLViewerImpl.
19 class TestHTMLViewerImpl : public TestHTMLViewer {
20 public:
21 TestHTMLViewerImpl(blink::WebFrame* web_frame,
22 mojo::InterfaceRequest<TestHTMLViewer> request);
23 ~TestHTMLViewerImpl() override;
25 private:
26 // TestHTMLViewer:
27 void GetContentAsText(const GetContentAsTextCallback& callback) override;
29 blink::WebFrame* web_frame_;
30 mojo::Binding<TestHTMLViewer> binding_;
32 DISALLOW_COPY_AND_ASSIGN(TestHTMLViewerImpl);
35 } // namespace html_viewer
37 #endif // COMPONENTS_HTML_VIEWER_TEST_HTML_VIEWER_IMPL_H_