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

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

Issue 8536002: Cleanup: Remove unneeded forward declarations from remoting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/host/support_access_verifier.h ('k') | remoting/jingle_glue/xmpp_proxy.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
11 #include "third_party/libjingle/source/talk/base/messagequeue.h" 11 #include "third_party/libjingle/source/talk/base/messagequeue.h"
12 #include "third_party/libjingle/source/talk/base/taskrunner.h" 12 #include "third_party/libjingle/source/talk/base/taskrunner.h"
13 #include "third_party/libjingle/source/talk/base/thread.h" 13 #include "third_party/libjingle/source/talk/base/thread.h"
14 14
15 namespace base { 15 namespace base {
16 class MessageLoopProxy; 16 class MessageLoopProxy;
17 } // namespace base 17 } // namespace base
18 18
19 namespace buzz {
20 class XmppClient;
21 } // namespace buzz
22
23 namespace remoting { 19 namespace remoting {
24 20
25 class TaskPump : public talk_base::MessageHandler, 21 class TaskPump : public talk_base::MessageHandler,
26 public talk_base::TaskRunner { 22 public talk_base::TaskRunner {
27 public: 23 public:
28 TaskPump(); 24 TaskPump();
29 25
30 // TaskRunner methods. 26 // TaskRunner methods.
31 virtual void WakeTasks(); 27 virtual void WakeTasks();
32 virtual int64 CurrentTime(); 28 virtual int64 CurrentTime();
33 29
34 // MessageHandler methods. 30 // MessageHandler methods.
35 virtual void OnMessage(talk_base::Message* pmsg); 31 virtual void OnMessage(talk_base::Message* pmsg);
36 }; 32 };
37 33
38 class JingleThreadMessageLoop : public MessageLoop { 34 class JingleThreadMessageLoop : public MessageLoop {
39 public: 35 public:
40 JingleThreadMessageLoop(talk_base::Thread* thread); 36 explicit JingleThreadMessageLoop(talk_base::Thread* thread);
41 virtual ~JingleThreadMessageLoop(); 37 virtual ~JingleThreadMessageLoop();
42 38
43 private: 39 private:
44 DISALLOW_COPY_AND_ASSIGN(JingleThreadMessageLoop); 40 DISALLOW_COPY_AND_ASSIGN(JingleThreadMessageLoop);
45 }; 41 };
46 42
47 // TODO(sergeyu): This class should be changed to inherit from Chromiums 43 // TODO(sergeyu): This class should be changed to inherit from Chromiums
48 // base::Thread instead of libjingle's thread. 44 // base::Thread instead of libjingle's thread.
49 class JingleThread : public talk_base::Thread { 45 class JingleThread : public talk_base::Thread {
50 public: 46 public:
(...skipping 21 matching lines...) Expand all
72 base::WaitableEvent stopped_event_; 68 base::WaitableEvent stopped_event_;
73 MessageLoop* message_loop_; 69 MessageLoop* message_loop_;
74 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 70 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
75 71
76 DISALLOW_COPY_AND_ASSIGN(JingleThread); 72 DISALLOW_COPY_AND_ASSIGN(JingleThread);
77 }; 73 };
78 74
79 } // namespace remoting 75 } // namespace remoting
80 76
81 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_ 77 #endif // REMOTING_JINGLE_GLUE_JINGLE_THREAD_H_
OLDNEW
« no previous file with comments | « remoting/host/support_access_verifier.h ('k') | remoting/jingle_glue/xmpp_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698