summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/extensions/media_player_event_router.h
blob: 5095de18d98f2cb27c7c0b4068bfaf8c403d9a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
#pragma once

#include "base/basictypes.h"

class Profile;
template <typename T> struct DefaultSingletonTraits;

// Event router class for events related to Mediaplayer.
class ExtensionMediaPlayerEventRouter {
 public:
  static ExtensionMediaPlayerEventRouter* GetInstance();

  void Init(Profile* profile);

  void NotifyPlaylistChanged();

 private:
  Profile* profile_;

  ExtensionMediaPlayerEventRouter();
  friend struct DefaultSingletonTraits<ExtensionMediaPlayerEventRouter>;
  DISALLOW_COPY_AND_ASSIGN(ExtensionMediaPlayerEventRouter);
};

#endif  // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_