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

Unified Diff: remoting/host/plugin/host_script_object.cc

Issue 49113003: It2Me native messaging: GYP and source refactoring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Max/Linux build break: remoting_native_messaging_host 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
« no previous file with comments | « remoting/host/plugin/host_script_object.h ('k') | remoting/host/setup/me2me_native_messaging_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/plugin/host_script_object.cc
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index 66d228c510873653b95e855fa937ef14f6ae671c..542f7258d08dbf38b4fc00ec831a1b7030e8ba33 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -130,9 +130,9 @@ HostNPScriptObject::~HostNPScriptObject() {
HostLogHandler::UnregisterLoggingScriptObject(this);
// Stop the It2Me host if the caller forgot to.
- if (it2me_impl_.get()) {
- it2me_impl_->Disconnect();
- it2me_impl_ = NULL;
+ if (it2me_host_.get()) {
+ it2me_host_->Disconnect();
+ it2me_host_ = NULL;
}
}
@@ -315,9 +315,9 @@ bool HostNPScriptObject::SetProperty(const std::string& property_name,
if (property_name == kAttrNameOnNatTraversalPolicyChanged) {
if (NPVARIANT_IS_OBJECT(*value)) {
on_nat_traversal_policy_changed_func_ = NPVARIANT_TO_OBJECT(*value);
- if (it2me_impl_.get()) {
- // Ask the It2Me implementation to notify the web-app of the policy.
- it2me_impl_->RequestNatPolicy();
+ if (it2me_host_.get()) {
+ // Ask the It2Me host to notify the web-app of the policy.
+ it2me_host_->RequestNatPolicy();
}
return true;
} else {
@@ -454,7 +454,7 @@ bool HostNPScriptObject::Connect(const NPVariant* args,
return false;
}
- if (it2me_impl_.get()) {
+ if (it2me_host_.get()) {
SetException("connect: can be called only when disconnected");
return false;
}
@@ -483,11 +483,11 @@ bool HostNPScriptObject::Connect(const NPVariant* args,
return false;
}
- // Create the It2Me host implementation and start connecting.
- it2me_impl_ = new It2MeImpl(
+ // Create the It2Me host and start connecting.
+ it2me_host_ = new It2MeHost(
host_context.Pass(), plugin_task_runner_, weak_ptr_,
xmpp_config, directory_bot_jid_);
- it2me_impl_->Connect();
+ it2me_host_->Connect();
return true;
}
@@ -501,9 +501,9 @@ bool HostNPScriptObject::Disconnect(const NPVariant* args,
return false;
}
- if (it2me_impl_.get()) {
- it2me_impl_->Disconnect();
- it2me_impl_ = NULL;
+ if (it2me_host_.get()) {
+ it2me_host_->Disconnect();
+ it2me_host_ = NULL;
}
return true;
« no previous file with comments | « remoting/host/plugin/host_script_object.h ('k') | remoting/host/setup/me2me_native_messaging_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698