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

Side by Side Diff: chrome/browser/chromeos/extensions/media_player_event_router.h

Issue 171813010: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context_ Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class Profile; 10 namespace content {
11 class BrowserContext;
12 }
11 13
12 namespace extensions { 14 namespace extensions {
13 15
14 // Event router class for events related to Mediaplayer. 16 // Event router class for events related to Mediaplayer.
15 class MediaPlayerEventRouter { 17 class MediaPlayerEventRouter {
16 public: 18 public:
17 explicit MediaPlayerEventRouter(Profile* profile); 19 explicit MediaPlayerEventRouter(content::BrowserContext* context);
18 virtual ~MediaPlayerEventRouter(); 20 virtual ~MediaPlayerEventRouter();
19 21
20 // Send notification that next-track shortcut key was pressed. 22 // Send notification that next-track shortcut key was pressed.
21 void NotifyNextTrack(); 23 void NotifyNextTrack();
22 24
23 // Send notification that previous-track shortcut key was pressed. 25 // Send notification that previous-track shortcut key was pressed.
24 void NotifyPrevTrack(); 26 void NotifyPrevTrack();
25 27
26 // Send notification that play/pause shortcut key was pressed. 28 // Send notification that play/pause shortcut key was pressed.
27 void NotifyTogglePlayState(); 29 void NotifyTogglePlayState();
28 30
29 private: 31 private:
30 Profile* profile_; 32 content::BrowserContext* browser_context_;
31 33
32 DISALLOW_COPY_AND_ASSIGN(MediaPlayerEventRouter); 34 DISALLOW_COPY_AND_ASSIGN(MediaPlayerEventRouter);
33 }; 35 };
34 36
35 } // namespace extensions 37 } // namespace extensions
36 38
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698