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

Side by Side Diff: chrome/browser/renderer_host/safe_browsing_resource_handler.h

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. Created 10 years, 4 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/timer.h" 13 #include "base/timer.h"
14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
15 #include "chrome/browser/renderer_host/resource_handler.h" 15 #include "chrome/browser/renderer_host/resource_handler.h"
16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
17 #include "chrome/common/notification_observer.h"
17 #include "chrome/common/notification_registrar.h" 18 #include "chrome/common/notification_registrar.h"
18 19
19 // SafeBrowsingResourceHandler checks that URLs are "safe" before navigating 20 // SafeBrowsingResourceHandler checks that URLs are "safe" before navigating
20 // to them. To be considered "safe", a URL must not appear in the 21 // to them. To be considered "safe", a URL must not appear in the
21 // malware/phishing blacklists (see SafeBrowsingService for details). 22 // malware/phishing blacklists (see SafeBrowsingService for details).
22 // 23 //
23 // This check is done before requesting the original URL, and additionally 24 // This check is done before requesting the original URL, and additionally
24 // before following any subsequent redirect. 25 // before following any subsequent redirect.
25 // 26 //
26 // In the common case, the check completes synchronously (no match in the bloom 27 // In the common case, the check completes synchronously (no match in the bloom
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int render_view_id_; 151 int render_view_id_;
151 scoped_refptr<SafeBrowsingService> safe_browsing_; 152 scoped_refptr<SafeBrowsingService> safe_browsing_;
152 ResourceDispatcherHost* rdh_; 153 ResourceDispatcherHost* rdh_;
153 ResourceType::Type resource_type_; 154 ResourceType::Type resource_type_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler); 156 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler);
156 }; 157 };
157 158
158 159
159 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ 160 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | chrome/browser/repost_form_warning_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698