Chromium Code Reviews| Index: content/renderer/web_ui_setup_impl.h |
| diff --git a/content/renderer/web_ui_setup_impl.h b/content/renderer/web_ui_setup_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..982d208bdae3e164ac38a1b0169d86268626d830 |
| --- /dev/null |
| +++ b/content/renderer/web_ui_setup_impl.h |
| @@ -0,0 +1,37 @@ |
| +// 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/compiler_specific.h" |
| +#include "content/common/web_ui_setup.mojom.h" |
| +#include "mojo/public/cpp/bindings/error_handler.h" |
| +#include "mojo/public/cpp/bindings/remote_ptr.h" |
| + |
| +namespace content { |
| + |
| +class WebUISetupImpl : public WebUISetup, |
| + public mojo::ErrorHandler { |
| + public: |
| + static void Bind(mojo::ScopedMessagePipeHandle handle); |
| + |
| + private: |
| + explicit WebUISetupImpl(mojo::ScopedMessagePipeHandle handle); |
| + virtual ~WebUISetupImpl(); |
| + |
| + // WebUISetup methods: |
| + virtual void SetWebUIHandle( |
| + int32_t view_routing_id, |
| + mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE; |
| + |
| + // mojo::ErrorHandler methods: |
| + virtual void OnError() OVERRIDE; |
| + |
| + mojo::RemotePtr<WebUISetupClient> client_; |
| +}; |
|
sky
2014/04/22 15:52:20
DISALLOW_...
|
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ |