Roll src/third_party/WebKit 8b42d1d:744641d (svn 186770:186771)
[chromium-blink-merge.git] / chrome / browser / plugins / plugins_resource_service.h
blobf5e7cbcfb0d8ad58088ae8fa23d960c52618684a
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_
8 #include "chrome/browser/web_resource/web_resource_service.h"
10 class PrefService;
11 class PrefRegistrySimple;
13 // This resource service periodically fetches plug-in metadata
14 // from a remote server and updates local state and PluginFinder.
15 class PluginsResourceService : public WebResourceService {
16 public:
17 explicit PluginsResourceService(PrefService* local_state);
19 void Init();
21 static void RegisterPrefs(PrefRegistrySimple* registry);
23 private:
24 ~PluginsResourceService() override;
26 // WebResourceService override to process the parsed information.
27 void Unpack(const base::DictionaryValue& parsed_json) override;
29 DISALLOW_COPY_AND_ASSIGN(PluginsResourceService);
32 #endif // CHROME_BROWSER_PLUGINS_PLUGINS_RESOURCE_SERVICE_H_