Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ | |
| 6 #define CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "content/common/web_ui_setup.mojom.h" | |
| 10 #include "mojo/public/cpp/bindings/error_handler.h" | |
| 11 #include "mojo/public/cpp/bindings/remote_ptr.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class WebUISetupImpl : public WebUISetup, | |
| 16 public mojo::ErrorHandler { | |
| 17 public: | |
| 18 static void Bind(mojo::ScopedMessagePipeHandle handle); | |
| 19 | |
| 20 private: | |
| 21 explicit WebUISetupImpl(mojo::ScopedMessagePipeHandle handle); | |
| 22 virtual ~WebUISetupImpl(); | |
| 23 | |
| 24 // WebUISetup methods: | |
| 25 virtual void SetWebUIHandle( | |
| 26 int32_t view_routing_id, | |
| 27 mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE; | |
| 28 | |
| 29 // mojo::ErrorHandler methods: | |
| 30 virtual void OnError() OVERRIDE; | |
| 31 | |
| 32 mojo::RemotePtr<WebUISetupClient> client_; | |
| 33 }; | |
|
sky
2014/04/22 15:52:20
DISALLOW_...
| |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_ | |
| OLD | NEW |