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

Side by Side Diff: chrome/browser/resource_dispatcher_host.cc

Issue 2826: Move the download code to new directories: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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
« no previous file with comments | « chrome/browser/render_view_context_menu_controller.cc ('k') | chrome/browser/save_package.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // See http://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc eLoading 5 // See http://wiki.corp.google.com/twiki/bin/view/Main/ChromeMultiProcessResourc eLoading
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/resource_dispatcher_host.h" 9 #include "chrome/browser/resource_dispatcher_host.h"
10 10
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/cert_store.h" 14 #include "chrome/browser/cert_store.h"
15 #include "chrome/browser/cross_site_request_manager.h" 15 #include "chrome/browser/cross_site_request_manager.h"
16 #include "chrome/browser/download_file.h" 16 #include "chrome/browser/download/download_file.h"
17 #include "chrome/browser/download_manager.h" 17 #include "chrome/browser/download/download_manager.h"
18 #include "chrome/browser/external_protocol_handler.h" 18 #include "chrome/browser/external_protocol_handler.h"
19 #include "chrome/browser/login_prompt.h" 19 #include "chrome/browser/login_prompt.h"
20 #include "chrome/browser/plugin_service.h" 20 #include "chrome/browser/plugin_service.h"
21 #include "chrome/browser/renderer_security_policy.h" 21 #include "chrome/browser/renderer_security_policy.h"
22 #include "chrome/browser/render_view_host.h" 22 #include "chrome/browser/render_view_host.h"
23 #include "chrome/browser/render_view_host_delegate.h" 23 #include "chrome/browser/render_view_host_delegate.h"
24 #include "chrome/browser/resource_request_details.h" 24 #include "chrome/browser/resource_request_details.h"
25 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 25 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
26 #include "chrome/browser/save_file_manager.h" 26 #include "chrome/browser/save_file_manager.h"
27 #include "chrome/browser/tab_contents.h" 27 #include "chrome/browser/tab_contents.h"
(...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 bool too_much_time_passed = time_since_last > kOneSecond; 2301 bool too_much_time_passed = time_since_last > kOneSecond;
2302 2302
2303 if (is_finished || enough_new_progress || too_much_time_passed) { 2303 if (is_finished || enough_new_progress || too_much_time_passed) {
2304 info->event_handler->OnUploadProgress(info->request_id, position, size); 2304 info->event_handler->OnUploadProgress(info->request_id, position, size);
2305 info->waiting_for_upload_progress_ack = true; 2305 info->waiting_for_upload_progress_ack = true;
2306 info->last_upload_ticks = TimeTicks::Now(); 2306 info->last_upload_ticks = TimeTicks::Now();
2307 info->last_upload_position = position; 2307 info->last_upload_position = position;
2308 } 2308 }
2309 } 2309 }
2310 2310
OLDNEW
« no previous file with comments | « chrome/browser/render_view_context_menu_controller.cc ('k') | chrome/browser/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698