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

Side by Side Diff: components/web_resource/notification_promo.h

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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
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 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
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
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_
OLDNEW
« no previous file with comments | « components/web_resource/eula_accepted_notifier_unittest.cc ('k') | components/web_resource/promo_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698