| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 scoped_ptr<OAuthClient> oauth_client_; | 169 scoped_ptr<OAuthClient> oauth_client_; |
| 170 | 170 |
| 171 base::ThreadChecker thread_checker_; | 171 base::ThreadChecker thread_checker_; |
| 172 | 172 |
| 173 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; | 173 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; |
| 174 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; | 174 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); | 176 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 // Creates a Me2MeNativeMessagingHost instance, attaches it to stdin/stdout and | |
| 180 // runs the message loop until Me2MeNativeMessagingHost signals shutdown. | |
| 181 int Me2MeNativeMessagingHostMain(); | |
| 182 | |
| 183 } // namespace remoting | 179 } // namespace remoting |
| 184 | 180 |
| 185 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ | 181 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ |
| OLD | NEW |