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

Unified Diff: chrome/browser/chromeos/extensions/media_player_api_factory.h

Issue 11638024: Make MediaPlayerEventRouter a PKS to decouple it from ExtensionService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years 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
Index: chrome/browser/chromeos/extensions/media_player_api_factory.h
diff --git a/chrome/browser/chromeos/extensions/input_method_api_factory.h b/chrome/browser/chromeos/extensions/media_player_api_factory.h
similarity index 55%
copy from chrome/browser/chromeos/extensions/input_method_api_factory.h
copy to chrome/browser/chromeos/extensions/media_player_api_factory.h
index 5b477c65eaef4fc0116d5993a464757dbaa26647..6fb6aa504b841866c68ae82873107138bf468f39 100644
--- a/chrome/browser/chromeos/extensions/input_method_api_factory.h
+++ b/chrome/browser/chromeos/extensions/media_player_api_factory.h
@@ -2,24 +2,25 @@
// 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_INPUT_METHOD_API_FACTORY_H_
-#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_FACTORY_H_
+#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_API_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_API_FACTORY_H_
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
namespace extensions {
-class InputMethodAPI;
+class MediaPlayerAPI;
-class InputMethodAPIFactory : public ProfileKeyedServiceFactory {
+class MediaPlayerAPIFactory : public ProfileKeyedServiceFactory {
public:
- static InputMethodAPIFactory* GetInstance();
+ static MediaPlayerAPI* GetForProfile(Profile* profile);
+ static MediaPlayerAPIFactory* GetInstance();
private:
- friend struct DefaultSingletonTraits<InputMethodAPIFactory>;
+ friend struct DefaultSingletonTraits<MediaPlayerAPIFactory>;
- InputMethodAPIFactory();
- virtual ~InputMethodAPIFactory();
+ MediaPlayerAPIFactory();
+ virtual ~MediaPlayerAPIFactory();
// ProfileKeyedServiceFactory implementation.
virtual ProfileKeyedService* BuildServiceInstanceFor(
@@ -30,4 +31,4 @@ class InputMethodAPIFactory : public ProfileKeyedServiceFactory {
} // namespace extensions
-#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_FACTORY_H_
+#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_API_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698