Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: remoting/jingle_glue/jingle_thread.h

Issue 6911024: Add HostObserverInterface and decouple HeartbeatSender and ChromotingHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/jingle_glue/jingle_client.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_
6 #define REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_ 6 #define REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_
7 7
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/tracked_objects.h" 9 #include "base/tracked_objects.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // talk_base::Thread 52 // talk_base::Thread
53 MessageLoop* message_loop(); 53 MessageLoop* message_loop();
54 54
55 // Returns task pump if the thread is running, otherwise NULL is returned. 55 // Returns task pump if the thread is running, otherwise NULL is returned.
56 TaskPump* task_pump(); 56 TaskPump* task_pump();
57 57
58 private: 58 private:
59 class JingleMessageLoop; 59 class JingleMessageLoop;
60 class JingleMessagePump; 60 class JingleMessagePump;
61 61
62 friend class HeartbeatSenderTest;
63
64 virtual void OnMessage(talk_base::Message* msg); 62 virtual void OnMessage(talk_base::Message* msg);
65 63
66 TaskPump* task_pump_; 64 TaskPump* task_pump_;
67 base::WaitableEvent started_event_; 65 base::WaitableEvent started_event_;
68 base::WaitableEvent stopped_event_; 66 base::WaitableEvent stopped_event_;
69 MessageLoop* message_loop_; 67 MessageLoop* message_loop_;
70 68
71 DISALLOW_COPY_AND_ASSIGN(JingleThread); 69 DISALLOW_COPY_AND_ASSIGN(JingleThread);
72 }; 70 };
73 71
74 } // namespace remoting 72 } // namespace remoting
75 73
76 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_ 74 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/jingle_client.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698