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

Unified Diff: mojo/public/bindings/sample/generated/sample_service.h

Issue 66353002: Mojo: RemotePtr<S> + bindings changes for Peer attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move forward declarations to interface_declaration Created 7 years, 1 month 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: mojo/public/bindings/sample/generated/sample_service.h
diff --git a/mojo/public/bindings/sample/generated/sample_service.h b/mojo/public/bindings/sample/generated/sample_service.h
index 9a77aa008cfa2af37787baa632a2ae8bcb71ccd6..6c42edb21b00cc84f4aeb0e1bf291ae01703f37a 100644
--- a/mojo/public/bindings/sample/generated/sample_service.h
+++ b/mojo/public/bindings/sample/generated/sample_service.h
@@ -106,11 +106,32 @@ MOJO_COMPILE_ASSERT(sizeof(Foo) == 64, bad_sizeof_Foo);
#pragma pack(pop)
+class Service;
+class ServiceProxy;
+class ServiceStub;
+
+class ServiceClient;
+class ServiceClientProxy;
+class ServiceClientStub;
+
class Service {
public:
+ typedef ServiceProxy _ProxyType;
DaveMoore 2013/11/11 18:49:05 Why bother with the "Type" part? Could it just be
+ typedef ServiceStub _StubType;
+ typedef ServiceClient _PeerType;
+
virtual void Frobinate(const Foo* foo, bool baz, mojo::Handle port) = 0;
};
+class ServiceClient {
+ public:
+ typedef ServiceClientProxy _ProxyType;
+ typedef ServiceClientStub _StubType;
+ typedef Service _PeerType;
+
+ virtual void DidFrobinate(int32_t result) = 0;
+};
+
class ServiceProxy : public Service {
public:
explicit ServiceProxy(mojo::MessageReceiver* receiver);
@@ -122,11 +143,26 @@ class ServiceProxy : public Service {
mojo::MessageReceiver* receiver_;
};
+class ServiceClientProxy : public ServiceClient {
+ public:
+ explicit ServiceClientProxy(mojo::MessageReceiver* receiver);
+
+ virtual void DidFrobinate(int32_t result) MOJO_OVERRIDE;
+
+ private:
+ mojo::MessageReceiver* receiver_;
+};
+
class ServiceStub : public Service, public mojo::MessageReceiver {
public:
virtual bool Accept(mojo::Message* message) MOJO_OVERRIDE;
};
+class ServiceClientStub : public ServiceClient, public mojo::MessageReceiver {
+ public:
+ virtual bool Accept(mojo::Message* message) MOJO_OVERRIDE;
+};
+
} // namespace sample
#endif // MOJO_GENERATED_BINDINGS_SAMPLE_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698