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

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

Issue 10911196: Support for ntp promo bubble. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: allow BR in parseHtmlSubset Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NOTIFICATION_PROMO_H_ 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_H_
6 #define CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_H_ 6 #define CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // Helper class for PromoResourceService that parses promo notification info 24 // Helper class for PromoResourceService that parses promo notification info
25 // from json or prefs. 25 // from json or prefs.
26 class NotificationPromo { 26 class NotificationPromo {
27 public: 27 public:
28 static GURL PromoServerURL(); 28 static GURL PromoServerURL();
29 29
30 enum PromoType { 30 enum PromoType {
31 NO_PROMO, 31 NO_PROMO,
32 NTP_NOTIFICATION_PROMO, 32 NTP_NOTIFICATION_PROMO,
33 BUBBLE_PROMO, 33 NTP_BUBBLE_PROMO,
34 MOBILE_NTP_SYNC_PROMO, 34 MOBILE_NTP_SYNC_PROMO,
35 }; 35 };
36 36
37 explicit NotificationPromo(Profile* profile); 37 explicit NotificationPromo(Profile* profile);
38 ~NotificationPromo(); 38 ~NotificationPromo();
39 39
40 // Initialize from json/prefs. 40 // Initialize from json/prefs.
41 void InitFromJson(const base::DictionaryValue& json, PromoType promo_type); 41 void InitFromJson(const base::DictionaryValue& json, PromoType promo_type);
42 void InitFromPrefs(PromoType promo_type); 42 void InitFromPrefs(PromoType promo_type);
43 43
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool closed_; 118 bool closed_;
119 119
120 bool gplus_required_; 120 bool gplus_required_;
121 121
122 bool new_notification_; 122 bool new_notification_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(NotificationPromo); 124 DISALLOW_COPY_AND_ASSIGN(NotificationPromo);
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_H_ 127 #endif // CHROME_BROWSER_WEB_RESOURCE_NOTIFICATION_PROMO_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | chrome/browser/web_resource/notification_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698