cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / web_view / public / cpp / web_view.h
blobd3abc5a2e8ee2498be86867935fcd5bb22d58246
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_WEB_VIEW_PUBLIC_CPP_WEB_VIEW_H_
6 #define COMPONENTS_WEB_VIEW_PUBLIC_CPP_WEB_VIEW_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/web_view/public/interfaces/web_view.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
13 namespace mojo {
14 class ApplicationImpl;
15 class View;
18 namespace web_view {
20 class WebView {
21 public:
22 explicit WebView(mojom::WebViewClient* client);
23 ~WebView();
25 void Init(mojo::ApplicationImpl* app, mojo::View* view);
27 mojom::WebView* web_view() { return web_view_.get(); }
29 private:
30 mojom::WebViewPtr web_view_;
31 mojo::Binding<mojom::WebViewClient> binding_;
33 DISALLOW_COPY_AND_ASSIGN(WebView);
36 } // namespace web_view
38 #endif // COMPONENTS_WEB_VIEW_PUBLIC_CPP_WEB_VIEW_H_