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

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

Issue 10905117: Safebrowsing malware interstitial UI tweaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 // 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 void PopulateMalwareStringDictionary(base::DictionaryValue* strings); 253 void PopulateMalwareStringDictionary(base::DictionaryValue* strings);
254 void PopulatePhishingStringDictionary(base::DictionaryValue* strings); 254 void PopulatePhishingStringDictionary(base::DictionaryValue* strings);
255 255
256 // A helper method used by the Populate methods above used to populate common 256 // A helper method used by the Populate methods above used to populate common
257 // fields. 257 // fields.
258 void PopulateStringDictionary(base::DictionaryValue* strings, 258 void PopulateStringDictionary(base::DictionaryValue* strings,
259 const string16& title, 259 const string16& title,
260 const string16& headline, 260 const string16& headline,
261 const string16& description1, 261 const string16& description1,
262 const string16& description2, 262 const string16& description2,
263 const string16& description3, 263 const string16& description3);
264 const string16& description4);
265 264
266 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV2); 265 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV2);
267 }; 266 };
268 267
269 // Factory for creating SafeBrowsingBlockingPage. Useful for tests. 268 // Factory for creating SafeBrowsingBlockingPage. Useful for tests.
270 class SafeBrowsingBlockingPageFactory { 269 class SafeBrowsingBlockingPageFactory {
271 public: 270 public:
272 virtual ~SafeBrowsingBlockingPageFactory() { } 271 virtual ~SafeBrowsingBlockingPageFactory() { }
273 272
274 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 273 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
275 SafeBrowsingService* service, 274 SafeBrowsingService* service,
276 content::WebContents* web_contents, 275 content::WebContents* web_contents,
277 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 276 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
278 }; 277 };
279 278
280 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 279 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698