summaryrefslogtreecommitdiffstats
path: root/mojo/services/html_viewer/mojo_blink_platform_impl.h
blob: aeb632d756c09feccd049524bcbd824266955d4a (plain)
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
38
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MOJO_SERVICES_HTML_VIEWER_MOJO_BLINK_PLATFORM_IMPL_H_
#define MOJO_SERVICES_HTML_VIEWER_MOJO_BLINK_PLATFORM_IMPL_H_

#include "mojo/services/html_viewer/blink_platform_impl.h"

#include "mojo/services/network/public/interfaces/network_service.mojom.h"

namespace mojo {
class ApplicationImpl;
}

namespace html_viewer {

class WebClipboardImpl;
class WebCookieJarImpl;

class MojoBlinkPlatformImpl : public BlinkPlatformImpl {
 public:
  MojoBlinkPlatformImpl(mojo::ApplicationImpl* app);
  virtual ~MojoBlinkPlatformImpl();

 private:
  // BlinkPlatform
  virtual blink::WebURLLoader* createURLLoader() override;
  virtual blink::WebSocketHandle* createWebSocketHandle() override;

  mojo::NetworkServicePtr network_service_;
  scoped_ptr<WebCookieJarImpl> cookie_jar_;
  scoped_ptr<WebClipboardImpl> clipboard_;
};

}  // namespace html_viewer

#endif  // MOJO_SERVICES_HTML_VIEWER_MOJO_BLINK_PLATFORM_IMPL_H_