| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 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_EXTENSIONS_API_PLUGINS_PLUGINS_API_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PLUGINS_PLUGINS_API_H_ | |
| 7 | |
| 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | |
| 9 #include "chrome/browser/profiles/profile_keyed_service.h" | |
| 10 | |
| 11 class Profile; | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 // The profile-keyed service that manages the plugins for extensions. | |
| 16 class PluginsAPI : public ProfileKeyedAPI { | |
| 17 public: | |
| 18 explicit PluginsAPI(Profile* profile); | |
| 19 virtual ~PluginsAPI(); | |
| 20 | |
| 21 // ProfileKeyedAPI implementation. | |
| 22 static ProfileKeyedAPIFactory<PluginsAPI>* GetFactoryInstance(); | |
| 23 | |
| 24 private: | |
| 25 friend class ProfileKeyedAPIFactory<PluginsAPI>; | |
| 26 | |
| 27 // ProfileKeyedAPI implementation. | |
| 28 static const char* service_name() { return "PluginsAPI"; } | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(PluginsAPI); | |
| 31 }; | |
| 32 | |
| 33 } // namespace extensions | |
| 34 | |
| 35 #endif // CHROME_BROWSER_EXTENSIONS_API_PLUGINS_PLUGINS_API_H_ | |
| 36 | |
| OLD | NEW |