| 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 COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ | 5 #ifndef COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ |
| 6 #define COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ | 6 #define COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 class PrefRegistrySimple; | 15 class PrefRegistrySimple; |
| 16 class PrefService; | 16 class PrefService; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class DictionaryValue; | 19 class DictionaryValue; |
| 20 class ListValue; | 20 class ListValue; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Tests |first_view_time_| + |max_seconds_| and -now(). | 104 // Tests |first_view_time_| + |max_seconds_| and -now(). |
| 105 // When either is 0, we don't cap the number of seconds. | 105 // When either is 0, we don't cap the number of seconds. |
| 106 bool ExceedsMaxSeconds() const; | 106 bool ExceedsMaxSeconds() const; |
| 107 | 107 |
| 108 PrefService* local_state_; | 108 PrefService* local_state_; |
| 109 | 109 |
| 110 PromoType promo_type_; | 110 PromoType promo_type_; |
| 111 std::string promo_text_; | 111 std::string promo_text_; |
| 112 | 112 |
| 113 scoped_ptr<const base::DictionaryValue> promo_payload_; | 113 std::unique_ptr<const base::DictionaryValue> promo_payload_; |
| 114 | 114 |
| 115 double start_; | 115 double start_; |
| 116 double end_; | 116 double end_; |
| 117 | 117 |
| 118 int num_groups_; | 118 int num_groups_; |
| 119 int initial_segment_; | 119 int initial_segment_; |
| 120 int increment_; | 120 int increment_; |
| 121 int time_slice_; | 121 int time_slice_; |
| 122 int max_group_; | 122 int max_group_; |
| 123 | 123 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 136 bool closed_; | 136 bool closed_; |
| 137 | 137 |
| 138 bool new_notification_; | 138 bool new_notification_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(NotificationPromo); | 140 DISALLOW_COPY_AND_ASSIGN(NotificationPromo); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace web_resource | 143 } // namespace web_resource |
| 144 | 144 |
| 145 #endif // COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ | 145 #endif // COMPONENTS_WEB_RESOURCE_NOTIFICATION_PROMO_H_ |
| OLD | NEW |