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

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

Issue 3087003: Added HostKeyPair class, signatures for heartbeat messages. (Closed)
Patch Set: - Created 10 years, 4 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
« no previous file with comments | « remoting/jingle_glue/jingle_client.cc ('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/tracked_objects.h" 8 #include "base/tracked_objects.h"
9 #include "base/waitable_event.h" 9 #include "base/waitable_event.h"
10 #include "third_party/libjingle/source/talk/base/messagequeue.h" 10 #include "third_party/libjingle/source/talk/base/messagequeue.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Returns Chromiums message loop for this thread. 48 // Returns Chromiums message loop for this thread.
49 // TODO(sergeyu): remove this method when we use base::Thread instead of 49 // TODO(sergeyu): remove this method when we use base::Thread instead of
50 // talk_base::Thread 50 // talk_base::Thread
51 MessageLoop* message_loop() { return message_loop_; } 51 MessageLoop* message_loop() { return message_loop_; }
52 52
53 // Returns task pump if the thread is running, otherwise NULL is returned. 53 // Returns task pump if the thread is running, otherwise NULL is returned.
54 TaskPump* task_pump() { return task_pump_; } 54 TaskPump* task_pump() { return task_pump_; }
55 55
56 private: 56 private:
57 friend class HeartbeatSenderTest;
58
57 virtual void OnMessage(talk_base::Message* msg); 59 virtual void OnMessage(talk_base::Message* msg);
58 60
59 void PumpAuxiliaryLoops(); 61 void PumpAuxiliaryLoops();
60 62
61 TaskPump* task_pump_; 63 TaskPump* task_pump_;
62 base::WaitableEvent started_event_; 64 base::WaitableEvent started_event_;
63 MessageLoop* message_loop_; 65 MessageLoop* message_loop_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(JingleThread); 67 DISALLOW_COPY_AND_ASSIGN(JingleThread);
66 }; 68 };
67 69
68 } // namespace remoting 70 } // namespace remoting
69 71
70 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_ 72 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/jingle_client.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698