| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |