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

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

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
Index: remoting/host/plugin/host_script_object.h
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h
index 74abcd97d2337419518d0cceda31015c261f5a8e..2558903acfad9bb2fefb70fceccb1a5307105f21 100644
--- a/remoting/host/plugin/host_script_object.h
+++ b/remoting/host/plugin/host_script_object.h
@@ -13,7 +13,7 @@
#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "remoting/base/auto_thread_task_runner.h"
-#include "remoting/host/it2me/it2me_impl.h"
+#include "remoting/host/it2me/it2me_host.h"
#include "remoting/host/plugin/host_plugin_utils.h"
#include "remoting/host/setup/daemon_controller.h"
#include "remoting/jingle_glue/xmpp_signal_strategy.h"
@@ -25,7 +25,7 @@ namespace remoting {
// HostNPScriptObject creates threads that are required to run
// ChromotingHost and starts/stops the host on those threads. When
// destroyed it synchronously shuts down the host and all threads.
-class HostNPScriptObject : public It2MeImpl::Observer {
+class HostNPScriptObject : public It2MeHost::Observer {
public:
HostNPScriptObject(NPP plugin,
NPObject* parent,
@@ -157,7 +157,7 @@ class HostNPScriptObject : public It2MeImpl::Observer {
bool StopDaemon(const NPVariant* args, uint32_t arg_count, NPVariant* result);
//////////////////////////////////////////////////////////
- // Implementation of It2MeImpl::Observer methods.
+ // Implementation of It2MeHost::Observer methods.
// Notifies OnStateChanged handler of a state change.
virtual void OnStateChanged(It2MeHostState state) OVERRIDE;
@@ -266,21 +266,21 @@ class HostNPScriptObject : public It2MeImpl::Observer {
// It2Me host state.
// Internal implementation of the It2Me host function.
- scoped_refptr<It2MeImpl> it2me_impl_;
+ scoped_refptr<It2MeHost> it2me_host_;
- // Cached, read-only copies of |it2me_impl_| session state.
+ // Cached, read-only copies of |it2me_host_| session state.
It2MeHostState state_;
std::string access_code_;
base::TimeDelta access_code_lifetime_;
std::string client_username_;
- // IT2Me Talk server configuration used by |it2me_impl_| to connect.
+ // IT2Me Talk server configuration used by |it2me_host_| to connect.
XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
- // Chromoting Bot JID used by |it2me_impl_| to register the host.
+ // Chromoting Bot JID used by |it2me_host_| to register the host.
std::string directory_bot_jid_;
- // Callbacks to notify in response to |it2me_impl_| events.
+ // Callbacks to notify in response to |it2me_host_| events.
ScopedRefNPObject on_nat_traversal_policy_changed_func_;
ScopedRefNPObject on_state_changed_func_;
« no previous file with comments | « remoting/host/native_messaging/native_messaging_writer_unittest.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698