1// Copyright (c) 2011 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_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ 6#define CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ 7#pragma once 8 9#include "chrome/browser/web_resource/web_resource_service.h" 10 11class DictionaryValue; 12class GpuBlacklist; 13 14class GpuBlacklistUpdater 15 : public WebResourceService { 16 public: 17 explicit GpuBlacklistUpdater(); 18 19 // URL of the up-to-date gpu_blacklist.json file. 20 static const char* kDefaultGpuBlacklistURL; 21 22 private: 23 virtual ~GpuBlacklistUpdater(); 24 25 virtual void Unpack(const DictionaryValue& parsed_json); 26 27 void LoadGpuBlacklist(); 28 29 // This is the version cached in local state that's automatically updated 30 // from the web. 31 const DictionaryValue* gpu_blacklist_cache_; 32 33 DISALLOW_COPY_AND_ASSIGN(GpuBlacklistUpdater); 34}; 35 36#endif // CHROME_BROWSER_WEB_RESOURCE_GPU_BLACKLIST_UPDATER_H_ 37 38