| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 
| 6 #define CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 6 #define CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| 11 #include "chrome/browser/utility_process_host.h" | 11 #include "chrome/browser/utility_process_host.h" | 
| 12 #include "content/common/notification_type.h" | 12 #include "content/common/notification_type.h" | 
| 13 | 13 | 
| 14 class PrefService; | 14 class PrefService; | 
| 15 class Profile; | 15 class Profile; | 
|  | 16 class ResourceDispatcherHost; | 
| 16 | 17 | 
| 17 // A WebResourceService fetches data from a web resource server and store | 18 // A WebResourceService fetches data from a web resource server and store | 
| 18 // locally as user preference. | 19 // locally as user preference. | 
| 19 class WebResourceService | 20 class WebResourceService | 
| 20     : public UtilityProcessHost::Client { | 21     : public UtilityProcessHost::Client { | 
| 21  public: | 22  public: | 
| 22   // Pass notification_type = NOTIFICATION_TYPE_COUNT if notification is not | 23   // Pass notification_type = NOTIFICATION_TYPE_COUNT if notification is not | 
| 23   // required. | 24   // required. | 
| 24   WebResourceService(Profile* profile, | 25   WebResourceService(Profile* profile, | 
| 25                      PrefService* prefs, | 26                      PrefService* prefs, | 
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 103   int cache_update_delay_; | 104   int cache_update_delay_; | 
| 104 | 105 | 
| 105   // True if a task has been set to update the cache when a new web resource | 106   // True if a task has been set to update the cache when a new web resource | 
| 106   // becomes available. | 107   // becomes available. | 
| 107   bool web_resource_update_scheduled_; | 108   bool web_resource_update_scheduled_; | 
| 108 | 109 | 
| 109   DISALLOW_COPY_AND_ASSIGN(WebResourceService); | 110   DISALLOW_COPY_AND_ASSIGN(WebResourceService); | 
| 110 }; | 111 }; | 
| 111 | 112 | 
| 112 #endif  // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 113 #endif  // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 
| OLD | NEW | 
|---|