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 |
11 #include "chrome/browser/platform_util.h" | 11 #include "chrome/browser/platform_util.h" |
12 #include "chrome/browser/web_resource/web_resource_service.h" | 12 #include "chrome/browser/web_resource/web_resource_service.h" |
13 | 13 |
| 14 class Profile; |
| 15 |
14 namespace PromoResourceServiceUtil { | 16 namespace PromoResourceServiceUtil { |
15 | 17 |
16 // Certain promotions should only be shown to certain classes of users. This | 18 // Certain promotions should only be shown to certain classes of users. This |
17 // function will change to reflect each kind of promotion. | 19 // function will change to reflect each kind of promotion. |
18 bool CanShowPromo(Profile* profile); | 20 bool CanShowPromo(Profile* profile); |
19 | 21 |
20 } // namespace PromoResourceServiceUtil | 22 } // namespace PromoResourceServiceUtil |
21 | 23 |
22 class PrefService; | 24 class PrefService; |
23 | 25 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // can write resource data back to user's pref file. | 196 // can write resource data back to user's pref file. |
195 DictionaryValue* web_resource_cache_; | 197 DictionaryValue* web_resource_cache_; |
196 | 198 |
197 // Overrides the current Chrome release channel for testing purposes. | 199 // Overrides the current Chrome release channel for testing purposes. |
198 platform_util::Channel channel_; | 200 platform_util::Channel channel_; |
199 | 201 |
200 DISALLOW_COPY_AND_ASSIGN(PromoResourceService); | 202 DISALLOW_COPY_AND_ASSIGN(PromoResourceService); |
201 }; | 203 }; |
202 | 204 |
203 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ | 205 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ |
OLD | NEW |