Index: remoting/host/setup/native_messaging_host.h |
diff --git a/remoting/host/setup/native_messaging_host.h b/remoting/host/setup/native_messaging_host.h |
index 6a00080a8456b981bee3a0c2a65b1a47751f6db6..986bbf91b67ab73436c3394a1d598cf1fdae0f96 100644 |
--- a/remoting/host/setup/native_messaging_host.h |
+++ b/remoting/host/setup/native_messaging_host.h |
@@ -138,6 +138,13 @@ class NativeMessagingHost { |
// Used to exchange the service account authorization code for credentials. |
scoped_ptr<OAuthClient> oauth_client_; |
+ // Keeps track of pending requests. Used to delay shutdown until all responses |
+ // have been sent. |
+ int pending_requests_; |
+ |
+ // True if Shutdown() has been called. |
+ bool shutdown_; |
+ |
base::WeakPtrFactory<NativeMessagingHost> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(NativeMessagingHost); |