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

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

Issue 6628035: Move resource related IPCs to their own file in content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/resource_response.h"
9 #include "content/browser/renderer_host/global_request_id.h" 8 #include "content/browser/renderer_host/global_request_id.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host.h"
11 #include "content/browser/renderer_host/resource_message_filter.h" 10 #include "content/browser/renderer_host/resource_message_filter.h"
11 #include "content/common/resource_response.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 14
15 // Maximum time in milliseconds to wait for the safe browsing service to 15 // Maximum time in milliseconds to wait for the safe browsing service to
16 // verify a URL. After this amount of time the outstanding check will be 16 // verify a URL. After this amount of time the outstanding check will be
17 // aborted, and the URL will be treated as if it were safe. 17 // aborted, and the URL will be treated as if it were safe.
18 static const int kCheckUrlTimeoutMs = 5000; 18 static const int kCheckUrlTimeoutMs = 5000;
19 19
20 // TODO(eroman): Downgrade these CHECK()s to DCHECKs once there is more 20 // TODO(eroman): Downgrade these CHECK()s to DCHECKs once there is more
21 // unit test coverage. 21 // unit test coverage.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 rdh_->FollowDeferredRedirect(render_process_host_id_, request_id, 297 rdh_->FollowDeferredRedirect(render_process_host_id_, request_id,
298 false, GURL()); 298 false, GURL());
299 } 299 }
300 } 300 }
301 301
302 void SafeBrowsingResourceHandler::ClearDeferredRequestInfo() { 302 void SafeBrowsingResourceHandler::ClearDeferredRequestInfo() {
303 deferred_request_id_ = -1; 303 deferred_request_id_ = -1;
304 deferred_url_ = GURL(); 304 deferred_url_ = GURL();
305 deferred_redirect_response_ = NULL; 305 deferred_redirect_response_ = NULL;
306 } 306 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/download_throttling_resource_handler.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698