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

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

Issue 10700155: Remove #pragma once from chrome/browser/{printing,safe_browsing,prefs,bookmarks,autocomplete} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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.
11 // 11 //
12 // The SafeBrowsingBlockingPage is created by the SafeBrowsingService on the UI 12 // The SafeBrowsingBlockingPage is created by the SafeBrowsingService on the UI
13 // thread when we've determined that a page is malicious. The operation of the 13 // thread when we've determined that a page is malicious. The operation of the
14 // blocking page occurs on the UI thread, where it waits for the user to make a 14 // blocking page occurs on the UI thread, where it waits for the user to make a
15 // decision about what to do: either go back or continue on. 15 // decision about what to do: either go back or continue on.
16 // 16 //
17 // The blocking page forwards the result of the user's choice back to the 17 // The blocking page forwards the result of the user's choice back to the
18 // SafeBrowsingService so that we can cancel the request for the new page, or 18 // SafeBrowsingService so that we can cancel the request for the new page, or
19 // or allow it to continue. 19 // or allow it to continue.
20 // 20 //
21 // A web page may contain several resources flagged as malware/phishing. This 21 // A web page may contain several resources flagged as malware/phishing. This
22 // results into more than one interstitial being shown. On the first unsafe 22 // results into more than one interstitial being shown. On the first unsafe
23 // resource received we show an interstitial. Any subsequent unsafe resource 23 // resource received we show an interstitial. Any subsequent unsafe resource
24 // notifications while the first interstitial is showing is queued. If the user 24 // notifications while the first interstitial is showing is queued. If the user
25 // decides to proceed in the first interstitial, we display all queued unsafe 25 // decides to proceed in the first interstitial, we display all queued unsafe
26 // resources in a new interstitial. 26 // resources in a new interstitial.
27 27
28 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 28 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
29 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 29 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
30 #pragma once
31 30
32 #include <map> 31 #include <map>
33 #include <string> 32 #include <string>
34 #include <vector> 33 #include <vector>
35 34
36 #include "base/gtest_prod_util.h" 35 #include "base/gtest_prod_util.h"
37 #include "base/time.h" 36 #include "base/time.h"
38 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
39 #include "content/public/browser/interstitial_page_delegate.h" 38 #include "content/public/browser/interstitial_page_delegate.h"
40 #include "googleurl/src/gurl.h" 39 #include "googleurl/src/gurl.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 public: 214 public:
216 virtual ~SafeBrowsingBlockingPageFactory() { } 215 virtual ~SafeBrowsingBlockingPageFactory() { }
217 216
218 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 217 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
219 SafeBrowsingService* service, 218 SafeBrowsingService* service,
220 content::WebContents* web_contents, 219 content::WebContents* web_contents,
221 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 220 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
222 }; 221 };
223 222
224 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 223 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_parser.h ('k') | chrome/browser/safe_browsing/safe_browsing_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698