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

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: rebase + fix error in sample_service.h 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..cb2e662808f7413e48ce4661cdba4df4d5bb5da4 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 _Proxy;
+ typedef ServiceStub _Stub;
+ typedef ServiceClient _Peer;
+
virtual void Frobinate(const Foo* foo, bool baz, mojo::Handle port) = 0;
};
+class ServiceClient {
+ public:
+ typedef ServiceClientProxy _Proxy;
+ typedef ServiceClientStub _Stub;
+ typedef Service _Peer;
+
+ 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_
« no previous file with comments | « mojo/public/bindings/parser/mojo_translate.py ('k') | mojo/public/bindings/sample/generated/sample_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698