diff options
author | murgatroid99 <mlumish@google.com> | 2015-09-23 11:44:01 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-09-23 11:44:01 -0700 |
commit | b58f69d18d243ce0cabcb0e13b894e6a221a3b35 (patch) | |
tree | 411225c3be3e8695dcd7482e98ca56eac698b2e0 /src/node/ext/server_credentials.h | |
parent | e339f6feecf943c282ccc5efe4500a7d3d4b660a (diff) | |
parent | 4831d02cc2341ec2233ff9d9ef66fb9a86138fb7 (diff) |
Merged from release_0.11 branch
Diffstat (limited to 'src/node/ext/server_credentials.h')
-rw-r--r-- | src/node/ext/server_credentials.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/node/ext/server_credentials.h b/src/node/ext/server_credentials.h index 63903f663c..bf279e481c 100644 --- a/src/node/ext/server_credentials.h +++ b/src/node/ext/server_credentials.h @@ -43,12 +43,12 @@ namespace grpc { namespace node { /* Wrapper class for grpc_server_credentials structs */ -class ServerCredentials : public ::node::ObjectWrap { +class ServerCredentials : public Nan::ObjectWrap { public: - static void Init(v8::Handle<v8::Object> exports); - static bool HasInstance(v8::Handle<v8::Value> val); + static void Init(v8::Local<v8::Object> exports); + static bool HasInstance(v8::Local<v8::Value> val); /* Wrap a grpc_server_credentials struct in a javascript object */ - static v8::Handle<v8::Value> WrapStruct(grpc_server_credentials *credentials); + static v8::Local<v8::Value> WrapStruct(grpc_server_credentials *credentials); /* Returns the grpc_server_credentials struct that this object wraps */ grpc_server_credentials *GetWrappedServerCredentials(); @@ -64,9 +64,9 @@ class ServerCredentials : public ::node::ObjectWrap { static NAN_METHOD(New); static NAN_METHOD(CreateSsl); static NAN_METHOD(CreateInsecure); - static NanCallback *constructor; + static Nan::Callback *constructor; // Used for typechecking instances of this javascript class - static v8::Persistent<v8::FunctionTemplate> fun_tpl; + static Nan::Persistent<v8::FunctionTemplate> fun_tpl; grpc_server_credentials *wrapped_credentials; }; |