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

Side by Side Diff: examples/srpc/duality/duality.h

Issue 2856050: Adding srpc example to naclports. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « examples/srpc/duality/Makefile ('k') | examples/srpc/duality/duality.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2010 The Native Client SDK Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4
5 #ifndef EXAMPLES_SRPC_DUALITY_DUALITY_H_
6 #define EXAMPLES_SRPC_DUALITY_DUALITY_H_
7
8 #include <examples/srpc/duality/scriptable.h>
9
10 #include <nacl/nacl_srpc.h>
11
12 #include <string>
13
14 // Extends Scriptable and adds the plugin's specific functionality.
15 class Duality : public Scriptable {
16 public:
17 Duality();
18 virtual ~Duality();
19
20 static bool SayHello(Scriptable * instance,
21 const NPVariant* args,
22 uint32_t arg_count,
23 NPVariant* result);
24
25 private:
26 // Populates the method table with our specific interface.
27 virtual void InitializeMethodTable();
28 // Populates the propert table with our specific interface.
29 // Since this class has no visible properties the function does nothing.
30 virtual void InitializePropertyTable() {}
31 };
32
33 #endif // EXAMPLES_SRPC_DUALITY_DUALITY_H_
OLDNEW
« no previous file with comments | « examples/srpc/duality/Makefile ('k') | examples/srpc/duality/duality.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698