OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
Ted C
2015/02/26 00:57:56
no need (c) here or anywhere else.
Changwan Ryu
2015/03/02 14:46:36
Removed
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_OVERWRITE_INFO_H_ | |
6 #define CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_OVERWRITE_INFO_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 namespace chrome { | |
13 namespace android { | |
14 | |
15 // Used to store all the information about overwriting behavior for an Android | |
16 // download. | |
17 struct DownloadOverwriteInfo { | |
18 DownloadOverwriteInfo(std::string file_name, | |
Peter Kasting
2015/02/25 06:24:57
const &s?
Can we store a FilePath instead of the
Changwan Ryu
2015/03/02 14:46:36
For the other code path that uses AndroidDownloadM
| |
19 std::string dir_name, | |
20 std::string dir_full_path, | |
21 std::string url, | |
22 std::string content_disposition, | |
23 std::string user_agent, | |
24 std::string cookie, | |
25 std::string referer, | |
26 bool has_user_gesture, | |
27 std::string mime_type, | |
28 int64 content_length, | |
29 bool is_GET_request); | |
Peter Kasting
2015/02/25 06:24:57
Nit: Don't capitalize GET here (or elsewhere)
Changwan Ryu
2015/03/02 14:46:36
Removed by passing Java DownloadInfo directly.
| |
30 ~DownloadOverwriteInfo(); | |
31 | |
32 std::string file_name; | |
33 std::string dir_name; | |
34 std::string dir_full_path; | |
35 std::string url; | |
36 std::string content_disposition; | |
37 std::string user_agent; | |
38 std::string cookie; | |
39 std::string referer; | |
40 bool has_user_gesture; | |
41 std::string mime_type; | |
42 int64 content_length; | |
43 bool is_GET_request; | |
44 bool overwrite; | |
45 bool dismissed; | |
46 | |
47 // Default copy constructor is used for passing this struct by value. | |
Peter Kasting
2015/02/25 06:24:57
Nit: No need for this comment, allowing copies of
Changwan Ryu
2015/03/02 14:46:36
Class removed.
| |
48 }; | |
49 | |
50 } // namespace android | |
51 } // namespace chrome | |
52 | |
53 #endif // CHROME_BROWSER_ANDROID_DOWNLOAD_DOWNLOAD_OVERWRITE_INFO_H_ | |
OLD | NEW |