| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/web_resource/chrome_web_resource_service.h" | 8 #include "components/web_resource/web_resource_service.h" |
| 9 | 9 |
| 10 class PrefService; | 10 class PrefService; |
| 11 class PrefRegistrySimple; | 11 class PrefRegistrySimple; |
| 12 | 12 |
| 13 // This resource service periodically fetches plugin metadata | 13 // This resource service periodically fetches plugin metadata |
| 14 // from a remote server and updates local state and PluginFinder. | 14 // from a remote server and updates local state and PluginFinder. |
| 15 class PluginsResourceService : public ChromeWebResourceService { | 15 class PluginsResourceService : public web_resource::WebResourceService { |
| 16 public: | 16 public: |
| 17 explicit PluginsResourceService(PrefService* local_state); | 17 explicit PluginsResourceService(PrefService* local_state); |
| 18 ~PluginsResourceService() override; | 18 ~PluginsResourceService() override; |
| 19 | 19 |
| 20 void Init(); | 20 void Init(); |
| 21 | 21 |
| 22 static void RegisterPrefs(PrefRegistrySimple* registry); | 22 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 // WebResourceService override to process the parsed information. | 25 // WebResourceService override to process the parsed information. |
| 26 void Unpack(const base::DictionaryValue& parsed_json) override; | 26 void Unpack(const base::DictionaryValue& parsed_json) override; |
| 27 | 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(PluginsResourceService); | 28 DISALLOW_COPY_AND_ASSIGN(PluginsResourceService); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ | 31 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_ |
| OLD | NEW |