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

Side by Side Diff: webrtc/base/bind.h

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing one more place where RTC_FROM_HERE wasn't used. Created 4 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 unified diff | Download patch
« no previous file with comments | « webrtc/base/base.gyp ('k') | webrtc/base/bind.h.pump » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file was GENERATED by command: 1 // This file was GENERATED by command:
2 // pump.py bind.h.pump 2 // pump.py bind.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 /* 5 /*
6 * Copyright 2012 The WebRTC Project Authors. All rights reserved. 6 * Copyright 2012 The WebRTC Project Authors. All rights reserved.
7 * 7 *
8 * Use of this source code is governed by a BSD-style license 8 * Use of this source code is governed by a BSD-style license
9 * that can be found in the LICENSE file in the root of the source 9 * that can be found in the LICENSE file in the root of the source
10 * tree. An additional intellectual property rights grant can be found 10 * tree. An additional intellectual property rights grant can be found
(...skipping 30 matching lines...) Expand all
41 // } 41 // }
42 // 42 //
43 // Example usage of ref counted objects: 43 // Example usage of ref counted objects:
44 // struct Bar { 44 // struct Bar {
45 // int AddRef(); 45 // int AddRef();
46 // int Release(); 46 // int Release();
47 // 47 //
48 // void Test() {} 48 // void Test() {}
49 // void BindThis() { 49 // void BindThis() {
50 // // The functor passed to AsyncInvoke() will keep this object alive. 50 // // The functor passed to AsyncInvoke() will keep this object alive.
51 // invoker.AsyncInvoke(rtc::Bind(&Bar::Test, this)); 51 // invoker.AsyncInvoke(RTC_FROM_HERE,rtc::Bind(&Bar::Test, this));
52 // } 52 // }
53 // }; 53 // };
54 // 54 //
55 // int main() { 55 // int main() {
56 // rtc::scoped_refptr<Bar> bar = new rtc::RefCountedObject<Bar>(); 56 // rtc::scoped_refptr<Bar> bar = new rtc::RefCountedObject<Bar>();
57 // auto functor = rtc::Bind(&Bar::Test, bar); 57 // auto functor = rtc::Bind(&Bar::Test, bar);
58 // bar = nullptr; 58 // bar = nullptr;
59 // // The functor stores an internal scoped_refptr<Bar>, so this is safe. 59 // // The functor stores an internal scoped_refptr<Bar>, so this is safe.
60 // functor(); 60 // functor();
61 // } 61 // }
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 function, p1, p2, p3, p4, p5, p6, p7, p8, p9); 1533 function, p1, p2, p3, p4, p5, p6, p7, p8, p9);
1534 } 1534 }
1535 1535
1536 #undef FP_T 1536 #undef FP_T
1537 1537
1538 } // namespace rtc 1538 } // namespace rtc
1539 1539
1540 #undef NONAME 1540 #undef NONAME
1541 1541
1542 #endif // WEBRTC_BASE_BIND_H_ 1542 #endif // WEBRTC_BASE_BIND_H_
OLDNEW
« no previous file with comments | « webrtc/base/base.gyp ('k') | webrtc/base/bind.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698