Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: content/renderer/web_ui_setup_impl.h

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
index 1bfc6caac4a4b45ca00647d823e960ed8a308336..65234544f022d80852ef85051a0b04076b87b228 100644
--- a/content/renderer/web_ui_setup_impl.h
+++ b/content/renderer/web_ui_setup_impl.h
@@ -7,30 +7,23 @@
#include "base/basictypes.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 {
+class WebUISetupImpl : public mojo::InterfaceImpl<WebUISetup> {
public:
static void Bind(mojo::ScopedMessagePipeHandle handle);
private:
- explicit WebUISetupImpl(mojo::ScopedMessagePipeHandle handle);
- virtual ~WebUISetupImpl();
+ WebUISetupImpl() {}
+
+ virtual void OnConnectionError() OVERRIDE;
// 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_;
-
DISALLOW_COPY_AND_ASSIGN(WebUISetupImpl);
};

Powered by Google App Engine
This is Rietveld 408576698