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_PROMO_RESOURCE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ |
6 #define CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ | 6 #define CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // inproduct: the promo button link | 185 // inproduct: the promo button link |
186 // tooltip: the text for the "hide this" link on the promo | 186 // tooltip: the text for the "hide this" link on the promo |
187 // name: starts with "webstore_promo" to identify the signal. the second | 187 // name: starts with "webstore_promo" to identify the signal. the second |
188 // part contains the release channels targeted (bitwise or of | 188 // part contains the release channels targeted (bitwise or of |
189 // BuildTypes). The third part is optional and specifies the URL of | 189 // BuildTypes). The third part is optional and specifies the URL of |
190 // the logo image. In the example above, the URL is empty so the | 190 // the logo image. In the example above, the URL is empty so the |
191 // default webstore logo will be used. | 191 // default webstore logo will be used. |
192 // answer_id: the promo's id | 192 // answer_id: the promo's id |
193 void UnpackWebStoreSignal(const base::DictionaryValue& parsed_json); | 193 void UnpackWebStoreSignal(const base::DictionaryValue& parsed_json); |
194 | 194 |
| 195 // The profile this service belongs to. |
| 196 Profile* profile_; |
| 197 |
195 // Gets mutable dictionary attached to user's preferences, so that we | 198 // Gets mutable dictionary attached to user's preferences, so that we |
196 // can write resource data back to user's pref file. | 199 // can write resource data back to user's pref file. |
197 base::DictionaryValue* web_resource_cache_; | 200 base::DictionaryValue* web_resource_cache_; |
198 | 201 |
199 // Overrides the current Chrome release channel for testing purposes. | 202 // Overrides the current Chrome release channel for testing purposes. |
200 chrome::VersionInfo::Channel channel_; | 203 chrome::VersionInfo::Channel channel_; |
201 | 204 |
202 DISALLOW_COPY_AND_ASSIGN(PromoResourceService); | 205 DISALLOW_COPY_AND_ASSIGN(PromoResourceService); |
203 }; | 206 }; |
204 | 207 |
205 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ | 208 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ |
OLD | NEW |