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

Unified Diff: chromecast/browser/media/cma_message_loop.h

Issue 823923002: [Chromecast] Add IPC code on brower process side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « chromecast/browser/media/cma_message_filter_host.cc ('k') | chromecast/browser/media/cma_message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/media/cma_message_loop.h
diff --git a/chromecast/browser/media/cma_message_loop.h b/chromecast/browser/media/cma_message_loop.h
new file mode 100644
index 0000000000000000000000000000000000000000..826999fa5af45e82092e67eefc5cd8918aec3fa2
--- /dev/null
+++ b/chromecast/browser/media/cma_message_loop.h
@@ -0,0 +1,41 @@
+// Copyright 2014 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.
+
+#ifndef CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_
+#define CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/singleton.h"
+
+namespace base {
+class MessageLoopProxy;
+class Thread;
+}
+
+namespace chromecast {
+namespace media {
+
+class CmaMessageLoop {
+ public:
+ static scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxy();
+
+ private:
+ friend struct DefaultSingletonTraits<CmaMessageLoop>;
+ friend class Singleton<CmaMessageLoop>;
+
+ static CmaMessageLoop* GetInstance();
+
+ CmaMessageLoop();
+ ~CmaMessageLoop();
+
+ scoped_ptr<base::Thread> thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(CmaMessageLoop);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_LOOP_H_
« no previous file with comments | « chromecast/browser/media/cma_message_filter_host.cc ('k') | chromecast/browser/media/cma_message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698