summaryrefslogtreecommitdiffstats
path: root/content/renderer/web_ui_setup_impl.h
blob: 65234544f022d80852ef85051a0b04076b87b228 (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
// 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 CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
#define CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_

#include "base/basictypes.h"
#include "content/common/web_ui_setup.mojom.h"

namespace content {

class WebUISetupImpl : public mojo::InterfaceImpl<WebUISetup> {
 public:
  static void Bind(mojo::ScopedMessagePipeHandle handle);

 private:
  WebUISetupImpl() {}

  virtual void OnConnectionError() OVERRIDE;

  // WebUISetup methods:
  virtual void SetWebUIHandle(
      int32_t view_routing_id,
      mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE;

  DISALLOW_COPY_AND_ASSIGN(WebUISetupImpl);
};

}  // namespace content

#endif  // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_