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

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

Issue 16755004: Use a direct include of strings headers in content/browser/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_item.h" 5 #include "content/browser/download/save_item.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/browser/download/save_file.h" 9 #include "content/browser/download/save_file.h"
10 #include "content/browser/download/save_file_manager.h" 10 #include "content/browser/download/save_file_manager.h"
11 #include "content/browser/download/save_package.h" 11 #include "content/browser/download/save_package.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Constructor for SaveItem when creating each saving job. 15 // Constructor for SaveItem when creating each saving job.
16 SaveItem::SaveItem(const GURL& url, 16 SaveItem::SaveItem(const GURL& url,
17 const Referrer& referrer, 17 const Referrer& referrer,
18 SavePackage* package, 18 SavePackage* package,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 DCHECK_EQ(-1, save_id_); 124 DCHECK_EQ(-1, save_id_);
125 save_id_ = save_id; 125 save_id_ = save_id;
126 } 126 }
127 127
128 void SaveItem::SetTotalBytes(int64 total_bytes) { 128 void SaveItem::SetTotalBytes(int64 total_bytes) {
129 DCHECK_EQ(0, total_bytes_); 129 DCHECK_EQ(0, total_bytes_);
130 total_bytes_ = total_bytes; 130 total_bytes_ = total_bytes;
131 } 131 }
132 132
133 } // namespace content 133 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/download/save_package_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698