diff options
author | ibraaaa@google.com <ibraaaa@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-02 20:41:14 +0000 |
---|---|---|
committer | ibraaaa@google.com <ibraaaa@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-02 20:41:14 +0000 |
commit | 2366a3a7e0a7b9a398ae747963ab7fcb4043a375 (patch) | |
tree | 8edec5720714fe015b097d27054081de1b58004b /chrome/browser/web_resource/plugins_resource_service.h | |
parent | 03c956ae04e3802df6afc9ac5fe1dad8737da2db (diff) | |
download | chromium_src-2366a3a7e0a7b9a398ae747963ab7fcb4043a375.zip chromium_src-2366a3a7e0a7b9a398ae747963ab7fcb4043a375.tar.gz chromium_src-2366a3a7e0a7b9a398ae747963ab7fcb4043a375.tar.bz2 |
Plugins resource service.
This CL adds a periodic request of plugin metadata files from a URL. The fetched files are used to update the current metadata.
BUG=124396
Review URL: https://chromiumcodereview.appspot.com/10990059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource/plugins_resource_service.h')
-rw-r--r-- | chrome/browser/web_resource/plugins_resource_service.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/browser/web_resource/plugins_resource_service.h b/chrome/browser/web_resource/plugins_resource_service.h new file mode 100644 index 0000000..7114cc7 --- /dev/null +++ b/chrome/browser/web_resource/plugins_resource_service.h @@ -0,0 +1,27 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_WEB_RESOURCE_PLUGINS_RESOURCE_SERVICE_H_ +#define CHROME_BROWSER_WEB_RESOURCE_PLUGINS_RESOURCE_SERVICE_H_ + +#include "chrome/browser/web_resource/web_resource_service.h" + +// This resource service periodically fetches plug-in metadata +// from a remote server and updates local state and PluginFinder. +class PluginsResourceService : public WebResourceService { + public: + explicit PluginsResourceService(PrefService* local_state); + + static void RegisterPrefs(PrefService* local_state); + + private: + virtual ~PluginsResourceService(); + + // WebResourceService override to process the parsed information. + virtual void Unpack(const base::DictionaryValue& parsed_json) OVERRIDE; + + DISALLOW_COPY_AND_ASSIGN(PluginsResourceService); +}; + +#endif // CHROME_BROWSER_WEB_RESOURCE_PLUGINS_RESOURCE_SERVICE_H_ |