Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H | |
| 6 #define MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H | |
| 7 | |
| 8 #include <map> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/threading/thread.h" | |
| 12 #include "media/base/message_loop_factory.h" | |
| 13 | |
| 14 namespace media { | |
| 15 | |
| 16 class MessageLoopFactoryImpl : public MessageLoopFactory { | |
| 17 public: | |
| 18 MessageLoopFactoryImpl(); | |
| 19 | |
| 20 // MessageLoopFactory methods. | |
| 21 virtual MessageLoop* GetMessageLoop(const std::string& name); | |
| 22 | |
| 23 protected: | |
| 24 virtual ~MessageLoopFactoryImpl(); | |
| 25 | |
| 26 private: | |
| 27 // Lock used to serialize access for the following data members. | |
| 28 mutable Lock lock_; | |
|
scherkus (not reviewing)
2011/01/13 23:52:50
nit: is mutable needed? not seeing any const meth
acolwell GONE FROM CHROMIUM
2011/01/14 01:14:12
Done.
| |
| 29 | |
| 30 typedef std::map<std::string, base::Thread*> ThreadMap; | |
| 31 ThreadMap thread_map_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(MessageLoopFactoryImpl); | |
| 34 }; | |
| 35 | |
| 36 } // namespace media | |
| 37 | |
| 38 #endif // MEDIA_BASE_MESSAGE_LOOP_FACTORY_IMPL_H | |
| OLD | NEW |