Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Side by Side Diff: chrome/browser/web_resource/promo_resource_service.h

Issue 7099004: Use the System URL Request Context in the web resource service instead of the default profile's c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/gpu_blacklist_updater.cc ('k') | chrome/browser/web_resource/promo_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698