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

Unified Diff: webrtc/base/fakecpumonitor.h

Issue 1287913004: Revert "Remove CpuMonitor and related, unused, code." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 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 | « webrtc/base/cpumonitor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/fakecpumonitor.h
diff --git a/webrtc/examples/objc/AppRTCDemo/ios/main.m b/webrtc/base/fakecpumonitor.h
similarity index 50%
copy from webrtc/examples/objc/AppRTCDemo/ios/main.m
copy to webrtc/base/fakecpumonitor.h
index 00b83f7fd2f1cf5a7433cb388b4d39e589e4fb5e..c6ea0f2933cf1b647bb43a8907a50b70cf6f04a9 100644
--- a/webrtc/examples/objc/AppRTCDemo/ios/main.m
+++ b/webrtc/base/fakecpumonitor.h
@@ -8,13 +8,25 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <UIKit/UIKit.h>
+#ifndef WEBRTC_BASE_FAKECPUMONITOR_H_
+#define WEBRTC_BASE_FAKECPUMONITOR_H_
-#import "ARDAppDelegate.h"
+#include "webrtc/base/cpumonitor.h"
-int main(int argc, char* argv[]) {
- @autoreleasepool {
- return UIApplicationMain(
- argc, argv, nil, NSStringFromClass([ARDAppDelegate class]));
+namespace rtc {
+
+class FakeCpuMonitor : public rtc::CpuMonitor {
+ public:
+ explicit FakeCpuMonitor(Thread* thread)
+ : CpuMonitor(thread) {
+ }
+ ~FakeCpuMonitor() {
+ }
+
+ virtual void OnMessage(rtc::Message* msg) {
}
-}
+};
+
+} // namespace rtc
+
+#endif // WEBRTC_BASE_FAKECPUMONITOR_H_
« no previous file with comments | « webrtc/base/cpumonitor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698