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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host.h

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error on ozone Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_native_messaging_host.h
diff --git a/remoting/host/it2me/it2me_native_messaging_host.h b/remoting/host/it2me/it2me_native_messaging_host.h
index 1780d73c312e4829b65378edd1c0c9469b926115..ba4b6e6c31bd86dc9e35d1b212473d1f4ab2b13b 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.h
+++ b/remoting/host/it2me/it2me_native_messaging_host.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "extensions/browser/api/messaging/native_message_host.h"
#include "remoting/base/auto_thread_task_runner.h"
+#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/it2me/it2me_host.h"
namespace base {
@@ -23,19 +24,22 @@ namespace remoting {
class It2MeNativeMessagingHost : public It2MeHost::Observer,
public extensions::NativeMessageHost {
public:
- It2MeNativeMessagingHost(scoped_refptr<AutoThreadTaskRunner> task_runner,
- scoped_ptr<It2MeHostFactory> factory);
- ~It2MeNativeMessagingHost() override;
+ It2MeNativeMessagingHost(
+ scoped_ptr<ChromotingHostContext> host_context,
+ scoped_ptr<It2MeHostFactory> host_factory);
+ ~It2MeNativeMessagingHost();
// extensions::NativeMessageHost implementation.
void OnMessage(const std::string& message) override;
void Start(Client* client) override;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner() const override;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner()
+ const override;
// It2MeHost::Observer implementation.
- void OnClientAuthenticated(const std::string& client_username) override;
+ void OnClientAuthenticated(const std::string& client_username)
+ override;
void OnStoreAccessCode(const std::string& access_code,
- base::TimeDelta access_code_lifetime) override;
+ base::TimeDelta access_code_lifetime) override;
void OnNatPolicyChanged(bool nat_traversal_enabled) override;
void OnStateChanged(It2MeHostState state) override;
@@ -56,8 +60,8 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
void SendMessageToClient(scoped_ptr<base::DictionaryValue> message) const;
Client* client_;
- scoped_ptr<It2MeHostFactory> factory_;
scoped_ptr<ChromotingHostContext> host_context_;
+ scoped_ptr<It2MeHostFactory> factory_;
scoped_refptr<It2MeHost> it2me_host_;
// Cached, read-only copies of |it2me_host_| session state.
« no previous file with comments | « remoting/host/it2me/it2me_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698