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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 // 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 25 matching lines...) Expand all
36 36
37 #include "base/gtest_prod_util.h" 37 #include "base/gtest_prod_util.h"
38 #include "base/macros.h" 38 #include "base/macros.h"
39 #include "base/task/cancelable_task_tracker.h" 39 #include "base/task/cancelable_task_tracker.h"
40 #include "chrome/browser/interstitials/chrome_metrics_helper.h" 40 #include "chrome/browser/interstitials/chrome_metrics_helper.h"
41 #include "chrome/browser/interstitials/security_interstitial_page.h" 41 #include "chrome/browser/interstitials/security_interstitial_page.h"
42 #include "chrome/browser/safe_browsing/ui_manager.h" 42 #include "chrome/browser/safe_browsing/ui_manager.h"
43 #include "content/public/browser/interstitial_page_delegate.h" 43 #include "content/public/browser/interstitial_page_delegate.h"
44 #include "url/gurl.h" 44 #include "url/gurl.h"
45 45
46 namespace base {
47 class MessageLoop;
48 }
49
50 namespace safe_browsing { 46 namespace safe_browsing {
51 47
52 class SafeBrowsingBlockingPageFactory; 48 class SafeBrowsingBlockingPageFactory;
53 class ThreatDetails; 49 class ThreatDetails;
54 50
55 class SafeBrowsingBlockingPage : public SecurityInterstitialPage { 51 class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
56 public: 52 public:
57 typedef SafeBrowsingUIManager::UnsafeResource UnsafeResource; 53 typedef SafeBrowsingUIManager::UnsafeResource UnsafeResource;
58 typedef std::vector<UnsafeResource> UnsafeResourceList; 54 typedef std::vector<UnsafeResource> UnsafeResourceList;
59 typedef std::map<content::WebContents*, UnsafeResourceList> UnsafeResourceMap; 55 typedef std::map<content::WebContents*, UnsafeResourceList> UnsafeResourceMap;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 233 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
238 SafeBrowsingUIManager* ui_manager, 234 SafeBrowsingUIManager* ui_manager,
239 content::WebContents* web_contents, 235 content::WebContents* web_contents,
240 const GURL& main_frame_url, 236 const GURL& main_frame_url,
241 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 237 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
242 }; 238 };
243 239
244 } // namespace safe_browsing 240 } // namespace safe_browsing
245 241
246 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 242 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.h ('k') | chrome/browser/safe_browsing/safe_browsing_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698