OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // ... | 131 // ... |
132 // ] | 132 // ] |
133 // } | 133 // } |
134 // } | 134 // } |
135 // | 135 // |
136 // Public for unit testing. | 136 // Public for unit testing. |
137 void UnpackLogoSignal(const DictionaryValue& parsed_json); | 137 void UnpackLogoSignal(const DictionaryValue& parsed_json); |
138 | 138 |
139 int cache_update_delay() const { return cache_update_delay_; } | 139 int cache_update_delay() const { return cache_update_delay_; } |
140 | 140 |
| 141 Profile* profile() const { return profile_; } |
| 142 |
141 static const char* kCurrentTipPrefName; | 143 static const char* kCurrentTipPrefName; |
142 static const char* kTipCachePrefName; | 144 static const char* kTipCachePrefName; |
143 | 145 |
144 // Default server of dynamically loaded NTP HTML elements (promotions, tips): | 146 // Default server of dynamically loaded NTP HTML elements (promotions, tips): |
145 static const char* kDefaultWebResourceServer; | 147 static const char* kDefaultWebResourceServer; |
146 | 148 |
147 private: | 149 private: |
148 class WebResourceFetcher; | 150 class WebResourceFetcher; |
149 friend class WebResourceFetcher; | 151 friend class WebResourceFetcher; |
150 | 152 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 int cache_update_delay_; | 200 int cache_update_delay_; |
199 | 201 |
200 // True if a task has been set to update the cache when a new web resource | 202 // True if a task has been set to update the cache when a new web resource |
201 // becomes available. | 203 // becomes available. |
202 bool web_resource_update_scheduled_; | 204 bool web_resource_update_scheduled_; |
203 | 205 |
204 DISALLOW_COPY_AND_ASSIGN(WebResourceService); | 206 DISALLOW_COPY_AND_ASSIGN(WebResourceService); |
205 }; | 207 }; |
206 | 208 |
207 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 209 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ |
OLD | NEW |