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

Side by Side Diff: jingle/glue/thread_wrapper.cc

Issue 8689014: Move P2P unit tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/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 | « content/content_tests.gypi ('k') | no next file » | 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 #include "jingle/glue/thread_wrapper.h" 5 #include "jingle/glue/thread_wrapper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/threading/thread_local.h" 10 #include "base/threading/thread_local.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 // static 40 // static
41 JingleThreadWrapper* JingleThreadWrapper::current() { 41 JingleThreadWrapper* JingleThreadWrapper::current() {
42 return g_jingle_thread_wrapper.Get().Get(); 42 return g_jingle_thread_wrapper.Get().Get();
43 } 43 }
44 44
45 JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop) 45 JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop)
46 : message_loop_(message_loop), 46 : message_loop_(message_loop),
47 send_allowed_(false), 47 send_allowed_(false),
48 last_task_id_(0),
48 pending_send_event_(true, false) { 49 pending_send_event_(true, false) {
49 DCHECK_EQ(message_loop_, MessageLoop::current()); 50 DCHECK_EQ(message_loop_, MessageLoop::current());
50 51
51 talk_base::ThreadManager::SetCurrent(this); 52 talk_base::ThreadManager::SetCurrent(this);
52 talk_base::MessageQueueManager::Instance()->Add(this); 53 talk_base::MessageQueueManager::Instance()->Add(this);
53 message_loop_->AddDestructionObserver(this); 54 message_loop_->AddDestructionObserver(this);
54 55
55 WrapCurrent(); 56 WrapCurrent();
56 } 57 }
57 58
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 287
287 void JingleThreadWrapper::Stop() { 288 void JingleThreadWrapper::Stop() {
288 NOTREACHED(); 289 NOTREACHED();
289 } 290 }
290 291
291 void JingleThreadWrapper::Run() { 292 void JingleThreadWrapper::Run() {
292 NOTREACHED(); 293 NOTREACHED();
293 } 294 }
294 295
295 } // namespace jingle_glue 296 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698