OLD | NEW |
---|---|
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 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" | 5 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | |
eroman
2009/05/28 19:25:55
shouldn't this be ordered lower down?
| |
7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 8 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
8 #include "chrome/browser/renderer_host/resource_message_filter.h" | 9 #include "chrome/browser/renderer_host/resource_message_filter.h" |
9 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
10 | 11 |
11 // Maximum time to wait for a gethash response from the Safe Browsing servers. | 12 // Maximum time to wait for a gethash response from the Safe Browsing servers. |
12 static const int kMaxGetHashMs = 1000; | 13 static const int kMaxGetHashMs = 1000; |
13 | 14 |
14 SafeBrowsingResourceHandler::SafeBrowsingResourceHandler( | 15 SafeBrowsingResourceHandler::SafeBrowsingResourceHandler( |
15 ResourceHandler* handler, | 16 ResourceHandler* handler, |
16 int render_process_host_id, | 17 int render_process_host_id, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
198 const NotificationSource& source, | 199 const NotificationSource& source, |
199 const NotificationDetails& details) { | 200 const NotificationDetails& details) { |
200 DCHECK(type.value == NotificationType::RESOURCE_MESSAGE_FILTER_SHUTDOWN); | 201 DCHECK(type.value == NotificationType::RESOURCE_MESSAGE_FILTER_SHUTDOWN); |
201 if (in_safe_browsing_check_) { | 202 if (in_safe_browsing_check_) { |
202 safe_browsing_->CancelCheck(this); | 203 safe_browsing_->CancelCheck(this); |
203 in_safe_browsing_check_ = false; | 204 in_safe_browsing_check_ = false; |
204 Release(); | 205 Release(); |
205 } | 206 } |
206 } | 207 } |
207 | 208 |
OLD | NEW |