diff options
author | lukasza <lukasza@chromium.org> | 2015-01-12 11:01:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-12 19:02:04 +0000 |
commit | 806efecb817d9a4fd9dfe460b5ce7d132ace615d (patch) | |
tree | 4bd05e3c55e42716a44291c48a849ac0daabaa7f /remoting/remoting_host_srcs.gypi | |
parent | 7577c2bcd74153c958cbf96cec26d7006944a907 (diff) | |
download | chromium_src-806efecb817d9a4fd9dfe460b5ce7d132ace615d.zip chromium_src-806efecb817d9a4fd9dfe460b5ce7d132ace615d.tar.gz chromium_src-806efecb817d9a4fd9dfe460b5ce7d132ace615d.tar.bz2 |
Reporting of policy errors via host-offline-reason: part 3
Introducing HostSignalingManager for extending host process's
lifetime while we wait for an ack to host-offline-reason heartbeat.
- HostSignalingManager is needed primarily to control process
lifetime by holding a ref-count to network_task_runner via a field
of HostSignalingManager - network_task_runner (via its
stop/join) callback) keeps a ref-count to the main thread
(ui_task_runner). And main thread / ui_task_runner will keep the
whole process running until its refcount drops to zero.
- Introducing HostSignalingManager also helps take multiple
fields that used to be held by HostProcess and embed/hide those
fields/objects inside HostSignalingManager
- Lifetime of HostSignalingManager is temporarily extended while
we are waiting for a timeout or ack to host-offline-reason
heartbeat.
BUG=410050
Review URL: https://codereview.chromium.org/719983002
Cr-Commit-Position: refs/heads/master@{#311077}
Diffstat (limited to 'remoting/remoting_host_srcs.gypi')
-rw-r--r-- | remoting/remoting_host_srcs.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/remoting_host_srcs.gypi b/remoting/remoting_host_srcs.gypi index 76eb02b..8a27eb8 100644 --- a/remoting/remoting_host_srcs.gypi +++ b/remoting/remoting_host_srcs.gypi @@ -118,6 +118,8 @@ 'host/host_extension_session_manager.h', 'host/host_secret.cc', 'host/host_secret.h', + 'host/host_signaling_manager.cc', + 'host/host_signaling_manager.h', 'host/host_status_logger.cc', 'host/host_status_logger.h', 'host/host_status_monitor.h', |