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

Side by Side Diff: content/browser/download/save_types.cc

Issue 1492283004: ABANDONED CL: Introducing a compile-time-safe SavePackageId type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-id-base
Patch Set: Created 5 years 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) 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 "content/browser/download/save_types.h" 5 #include "content/browser/download/save_types.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path, 9 SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path,
10 const GURL& url, 10 const GURL& url,
11 SaveFileSource save_source, 11 SaveFileSource save_source,
12 int32 save_id) 12 int32 save_id)
13 : path(path), 13 : path(path),
14 url(url), 14 url(url),
15 save_id(save_id), 15 save_id(save_id),
16 save_package_id(-1),
17 render_process_id(-1), 16 render_process_id(-1),
18 render_frame_routing_id(-1), 17 render_frame_routing_id(-1),
19 request_id(-1), 18 request_id(-1),
20 total_bytes(0), 19 total_bytes(0),
21 save_source(save_source) {} 20 save_source(save_source) {}
22 21
23 SaveFileCreateInfo::SaveFileCreateInfo() 22 SaveFileCreateInfo::SaveFileCreateInfo()
24 : save_id(-1), 23 : save_id(-1),
25 save_package_id(-1),
26 render_process_id(-1), 24 render_process_id(-1),
27 render_frame_routing_id(-1), 25 render_frame_routing_id(-1),
28 request_id(-1), 26 request_id(-1),
29 total_bytes(0), 27 total_bytes(0),
30 save_source(SAVE_FILE_FROM_UNKNOWN) {} 28 save_source(SAVE_FILE_FROM_UNKNOWN) {}
31 29
32 SaveFileCreateInfo::~SaveFileCreateInfo() {} 30 SaveFileCreateInfo::~SaveFileCreateInfo() {}
33 31
34 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_types.h ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698