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

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

Issue 8589003: Add OVERRIDE to jingle/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes 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 | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | jingle/glue/thread_wrapper_unittest.cc » ('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 JINGLE_GLUE_THREAD_WRAPPER_H_ 5 #ifndef JINGLE_GLUE_THREAD_WRAPPER_H_
6 #define JINGLE_GLUE_THREAD_WRAPPER_H_ 6 #define JINGLE_GLUE_THREAD_WRAPPER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/message_loop.h" 12 #include "base/message_loop.h"
12 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
13 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
14 #include "third_party/libjingle/source/talk/base/thread.h" 15 #include "third_party/libjingle/source/talk/base/thread.h"
15 16
16 namespace jingle_glue { 17 namespace jingle_glue {
17 18
18 // JingleThreadWrapper wraps Chromium threads using talk_base::Thread 19 // JingleThreadWrapper wraps Chromium threads using talk_base::Thread
19 // interface. The object must be created by calling 20 // interface. The object must be created by calling
20 // EnsureForCurrentThread(). Each JingleThreadWrapper deletes itself 21 // EnsureForCurrentThread(). Each JingleThreadWrapper deletes itself
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 base::WaitableEvent pending_send_event_; 111 base::WaitableEvent pending_send_event_;
111 }; 112 };
112 113
113 } 114 }
114 115
115 // Safe to disable refcounting because JingleThreadWrapper deletes 116 // Safe to disable refcounting because JingleThreadWrapper deletes
116 // itself with the thread. 117 // itself with the thread.
117 DISABLE_RUNNABLE_METHOD_REFCOUNT(jingle_glue::JingleThreadWrapper); 118 DISABLE_RUNNABLE_METHOD_REFCOUNT(jingle_glue::JingleThreadWrapper);
118 119
119 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ 120 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_
OLDNEW
« no previous file with comments | « jingle/glue/pseudotcp_adapter_unittest.cc ('k') | jingle/glue/thread_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698