OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This object runs on a thread and knows how to interpret messages sent by the | 5 // This object runs on a thread and knows how to interpret messages sent by the |
6 // talk mediator. The mediator posts messages to a queue which the thread polls | 6 // talk mediator. The mediator posts messages to a queue which the thread polls |
7 // (in a super class). | 7 // (in a super class). |
8 // | 8 // |
9 // Example usage: | 9 // Example usage: |
10 // | 10 // |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void DoSubscribeForUpdates( | 98 void DoSubscribeForUpdates( |
99 const std::vector<std::string>& subscribed_services_list); | 99 const std::vector<std::string>& subscribed_services_list); |
100 void DoListenForUpdates(); | 100 void DoListenForUpdates(); |
101 void DoSendNotification( | 101 void DoSendNotification( |
102 const OutgoingNotificationData& data); | 102 const OutgoingNotificationData& data); |
103 | 103 |
104 const NotifierOptions notifier_options_; | 104 const NotifierOptions notifier_options_; |
105 | 105 |
106 base::Thread worker_thread_; | 106 base::Thread worker_thread_; |
107 scoped_ptr<net::HostResolver> host_resolver_; | 107 scoped_ptr<net::HostResolver> host_resolver_; |
| 108 scoped_ptr<net::CertVerifier> cert_verifier_; |
108 | 109 |
109 scoped_ptr<notifier::Login> login_; | 110 scoped_ptr<notifier::Login> login_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(MediatorThreadImpl); | 112 DISALLOW_COPY_AND_ASSIGN(MediatorThreadImpl); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace notifier | 115 } // namespace notifier |
115 | 116 |
116 // We manage the lifetime of notifier::MediatorThreadImpl ourselves. | 117 // We manage the lifetime of notifier::MediatorThreadImpl ourselves. |
117 DISABLE_RUNNABLE_METHOD_REFCOUNT(notifier::MediatorThreadImpl); | 118 DISABLE_RUNNABLE_METHOD_REFCOUNT(notifier::MediatorThreadImpl); |
118 | 119 |
119 #endif // JINGLE_NOTIFIER_LISTENER_MEDIATOR_THREAD_IMPL_H_ | 120 #endif // JINGLE_NOTIFIER_LISTENER_MEDIATOR_THREAD_IMPL_H_ |
OLD | NEW |