OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 5 #ifndef REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 scoped_ptr<base::DictionaryValue> message, | 93 scoped_ptr<base::DictionaryValue> message, |
94 scoped_ptr<base::DictionaryValue> response); | 94 scoped_ptr<base::DictionaryValue> response); |
95 void ProcessGetDaemonState( | 95 void ProcessGetDaemonState( |
96 scoped_ptr<base::DictionaryValue> message, | 96 scoped_ptr<base::DictionaryValue> message, |
97 scoped_ptr<base::DictionaryValue> response); | 97 scoped_ptr<base::DictionaryValue> response); |
98 void ProcessGetHostClientId( | 98 void ProcessGetHostClientId( |
99 scoped_ptr<base::DictionaryValue> message, | 99 scoped_ptr<base::DictionaryValue> message, |
100 scoped_ptr<base::DictionaryValue> response); | 100 scoped_ptr<base::DictionaryValue> response); |
101 void ProcessGetCredentialsFromAuthCode( | 101 void ProcessGetCredentialsFromAuthCode( |
102 scoped_ptr<base::DictionaryValue> message, | 102 scoped_ptr<base::DictionaryValue> message, |
103 scoped_ptr<base::DictionaryValue> response); | 103 scoped_ptr<base::DictionaryValue> response, |
| 104 bool need_user_email); |
104 | 105 |
105 // These Send... methods get called on the DaemonController's internal thread, | 106 // These Send... methods get called on the DaemonController's internal thread, |
106 // or on the calling thread if called by the PairingRegistry. | 107 // or on the calling thread if called by the PairingRegistry. |
107 // These methods fill in the |response| dictionary from the other parameters, | 108 // These methods fill in the |response| dictionary from the other parameters, |
108 // and pass it to SendResponse(). | 109 // and pass it to SendResponse(). |
109 void SendConfigResponse(scoped_ptr<base::DictionaryValue> response, | 110 void SendConfigResponse(scoped_ptr<base::DictionaryValue> response, |
110 scoped_ptr<base::DictionaryValue> config); | 111 scoped_ptr<base::DictionaryValue> config); |
111 void SendPairedClientsResponse(scoped_ptr<base::DictionaryValue> response, | 112 void SendPairedClientsResponse(scoped_ptr<base::DictionaryValue> response, |
112 scoped_ptr<base::ListValue> pairings); | 113 scoped_ptr<base::ListValue> pairings); |
113 void SendUsageStatsConsentResponse( | 114 void SendUsageStatsConsentResponse( |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 185 |
185 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; | 186 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; |
186 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; | 187 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; |
187 | 188 |
188 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); | 189 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); |
189 }; | 190 }; |
190 | 191 |
191 } // namespace remoting | 192 } // namespace remoting |
192 | 193 |
193 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 194 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
OLD | NEW |