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

Unified Diff: remoting/jingle_glue/jingle_thread.h

Issue 7302002: Make JingleThreadMessageLoop usable without JingleThread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/jingle_glue/jingle_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_thread.h
diff --git a/remoting/jingle_glue/jingle_thread.h b/remoting/jingle_glue/jingle_thread.h
index a7201e1bd0ceb8143cd747e3758c37b5d376dc03..1db62f3a39b9b294ba5c99df46ddae5bd737f83e 100644
--- a/remoting/jingle_glue/jingle_thread.h
+++ b/remoting/jingle_glue/jingle_thread.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -31,6 +31,15 @@ class TaskPump : public talk_base::MessageHandler,
virtual void OnMessage(talk_base::Message* pmsg);
};
+class JingleThreadMessageLoop : public MessageLoop {
+ public:
+ JingleThreadMessageLoop(talk_base::Thread* thread);
+ virtual ~JingleThreadMessageLoop();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(JingleThreadMessageLoop);
+};
+
// TODO(sergeyu): This class should be changed to inherit from Chromiums
// base::Thread instead of libjingle's thread.
class JingleThread : public talk_base::Thread,
@@ -56,9 +65,6 @@ class JingleThread : public talk_base::Thread,
TaskPump* task_pump();
private:
- class JingleMessageLoop;
- class JingleMessagePump;
-
virtual void OnMessage(talk_base::Message* msg);
TaskPump* task_pump_;
« no previous file with comments | « no previous file | remoting/jingle_glue/jingle_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698