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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 class Profile; |
| 12 template <typename T> struct DefaultSingletonTraits; |
| 13 |
| 14 // Event router class for events related to Mediaplayer. |
| 15 class ExtensionMediaPlayerEventRouter { |
| 16 public: |
| 17 static ExtensionMediaPlayerEventRouter* GetInstance(); |
| 18 |
| 19 void Init(Profile* profile); |
| 20 |
| 21 void NotifyPlaylistChanged(); |
| 22 |
| 23 private: |
| 24 Profile* profile_; |
| 25 |
| 26 ExtensionMediaPlayerEventRouter(); |
| 27 friend struct DefaultSingletonTraits<ExtensionMediaPlayerEventRouter>; |
| 28 DISALLOW_COPY_AND_ASSIGN(ExtensionMediaPlayerEventRouter); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ |
OLD | NEW |