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

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

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 7 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 #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
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
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc ('k') | chrome/common/net/url_request_intercept_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698