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"
16 namespace html_viewer
{
18 // Caller must ensure that |web_frame| outlives TestHTMLViewerImpl.
19 class TestHTMLViewerImpl
: public TestHTMLViewer
{
21 TestHTMLViewerImpl(blink::WebFrame
* web_frame
,
22 mojo::InterfaceRequest
<TestHTMLViewer
> request
);
23 ~TestHTMLViewerImpl() override
;
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_