Chromium Code Reviews

Side by Side Diff: chrome/browser/history/download_create_info.cc

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Moving extension methods out of download_util.h Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/history/download_create_info.h" 5 #include "chrome/browser/history/download_create_info.h"
6 6
7 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path, 7 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path,
8 const GURL& url, 8 const GURL& url,
9 base::Time start_time, 9 base::Time start_time,
10 int64 received_bytes, 10 int64 received_bytes,
11 int64 total_bytes, 11 int64 total_bytes,
12 int32 state, 12 int32 state,
13 int32 download_id) 13 int32 download_id,
14 bool has_user_gesture)
14 : path(path), 15 : path(path),
15 url(url), 16 url(url),
16 path_uniquifier(0), 17 path_uniquifier(0),
17 start_time(start_time), 18 start_time(start_time),
18 received_bytes(received_bytes), 19 received_bytes(received_bytes),
19 total_bytes(total_bytes), 20 total_bytes(total_bytes),
20 state(state), 21 state(state),
21 download_id(download_id), 22 download_id(download_id),
23 has_user_gesture(has_user_gesture),
22 child_id(-1), 24 child_id(-1),
23 render_view_id(-1), 25 render_view_id(-1),
24 request_id(-1), 26 request_id(-1),
25 db_handle(0), 27 db_handle(0),
26 prompt_user_for_save_location(false), 28 prompt_user_for_save_location(false),
27 is_dangerous(false), 29 is_dangerous(false),
28 is_extension_install(false) { 30 is_extension_install(false) {
29 } 31 }
30 32
31 DownloadCreateInfo::DownloadCreateInfo() 33 DownloadCreateInfo::DownloadCreateInfo()
32 : path_uniquifier(0), 34 : path_uniquifier(0),
33 received_bytes(0), 35 received_bytes(0),
34 total_bytes(0), 36 total_bytes(0),
35 state(-1), 37 state(-1),
36 download_id(-1), 38 download_id(-1),
39 has_user_gesture(has_user_gesture),
37 child_id(-1), 40 child_id(-1),
38 render_view_id(-1), 41 render_view_id(-1),
39 request_id(-1), 42 request_id(-1),
40 db_handle(0), 43 db_handle(0),
41 prompt_user_for_save_location(false), 44 prompt_user_for_save_location(false),
42 is_dangerous(false), 45 is_dangerous(false),
43 is_extension_install(false) { 46 is_extension_install(false) {
44 } 47 }
45 48
46 DownloadCreateInfo::~DownloadCreateInfo() { 49 DownloadCreateInfo::~DownloadCreateInfo() {
47 } 50 }
OLDNEW

Powered by Google App Engine