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 "chrome/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 | 16 |
17 // A WebResourceService fetches data from a web resource server and store | 17 // A WebResourceService fetches data from a web resource server and store |
18 // locally as user preference. | 18 // locally as user preference. |
19 class WebResourceService | 19 class WebResourceService |
20 : public UtilityProcessHost::Client { | 20 : public UtilityProcessHost::Client { |
21 public: | 21 public: |
22 // Pass notification_type = NOTIFICATION_TYPE_COUNT if notification is not | 22 // Pass notification_type = NOTIFICATION_TYPE_COUNT if notification is not |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 int cache_update_delay_; | 103 int cache_update_delay_; |
104 | 104 |
105 // True if a task has been set to update the cache when a new web resource | 105 // True if a task has been set to update the cache when a new web resource |
106 // becomes available. | 106 // becomes available. |
107 bool web_resource_update_scheduled_; | 107 bool web_resource_update_scheduled_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(WebResourceService); | 109 DISALLOW_COPY_AND_ASSIGN(WebResourceService); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 112 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ |
OLD | NEW |