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