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

Side by Side Diff: ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Classes for managing the SafeBrowsing interstitial pages. 5 // Classes for managing the SafeBrowsing interstitial pages.
6 // 6 //
7 // When a user is about to visit a page the SafeBrowsing system has deemed to 7 // When a user is about to visit a page the SafeBrowsing system has deemed to
8 // be malicious, either as malware or a phishing page, we show an interstitial 8 // be malicious, either as malware or a phishing page, we show an interstitial
9 // page with some options (go back, continue) to give the user a chance to avoid 9 // page with some options (go back, continue) to give the user a chance to avoid
10 // the harmful page. 10 // the harmful page.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data) const; 141 void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data) const;
142 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data) const; 142 void PopulateHarmfulLoadTimeData(base::DictionaryValue* load_time_data) const;
143 void PopulatePhishingLoadTimeData( 143 void PopulatePhishingLoadTimeData(
144 base::DictionaryValue* load_time_data) const; 144 base::DictionaryValue* load_time_data) const;
145 145
146 std::string GetMetricPrefix() const; 146 std::string GetMetricPrefix() const;
147 std::string GetExtraMetricsSuffix() const; 147 std::string GetExtraMetricsSuffix() const;
148 std::string GetRapporPrefix() const; 148 std::string GetRapporPrefix() const;
149 std::string GetSamplingEventName() const; 149 std::string GetSamplingEventName() const;
150 150
151 scoped_ptr<IOSChromeControllerClient> controller_; 151 std::unique_ptr<IOSChromeControllerClient> controller_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); 153 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage);
154 }; 154 };
155 155
156 // Factory for creating SafeBrowsingBlockingPage. Useful for tests. 156 // Factory for creating SafeBrowsingBlockingPage. Useful for tests.
157 class SafeBrowsingBlockingPageFactory { 157 class SafeBrowsingBlockingPageFactory {
158 public: 158 public:
159 virtual ~SafeBrowsingBlockingPageFactory() {} 159 virtual ~SafeBrowsingBlockingPageFactory() {}
160 160
161 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 161 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
162 SafeBrowsingUIManager* ui_manager, 162 SafeBrowsingUIManager* ui_manager,
163 web::WebState* web_state, 163 web::WebState* web_state,
164 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 164 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
165 }; 165 };
166 166
167 } // namespace safe_browsing 167 } // namespace safe_browsing
168 168
169 #endif // IOS_CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 169 #endif // IOS_CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698