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

Unified Diff: media/base/message_loop_factory_impl.h

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied more CR suggestions & removed message_loop() methods where possible. Created 9 years, 11 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 | « media/base/message_loop_factory.cc ('k') | media/base/message_loop_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/message_loop_factory_impl.h
diff --git a/media/base/message_loop_factory_impl.h b/media/base/message_loop_factory_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c8a61a70ce243ff16c074f4bbae9cad1a998a59
--- /dev/null
+++ b/media/base/message_loop_factory_impl.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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 MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H_
+#define MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H_
+
+#include <map>
+#include <string>
+
+#include "base/threading/thread.h"
+#include "media/base/message_loop_factory.h"
+
+namespace media {
+
+class MessageLoopFactoryImpl : public MessageLoopFactory {
+ public:
+ MessageLoopFactoryImpl();
+
+ // MessageLoopFactory methods.
+ virtual MessageLoop* GetMessageLoop(const std::string& name);
+
+ protected:
+ virtual ~MessageLoopFactoryImpl();
+
+ private:
+ // Lock used to serialize access for the following data members.
+ Lock lock_;
+
+ typedef std::map<std::string, base::Thread*> ThreadMap;
+ ThreadMap thread_map_;
+
+ DISALLOW_COPY_AND_ASSIGN(MessageLoopFactoryImpl);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H_
« no previous file with comments | « media/base/message_loop_factory.cc ('k') | media/base/message_loop_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698