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

Side by Side Diff: chrome/browser/download/save_file.cc

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/download/download_manager.cc ('k') | chrome/browser/download/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 #include "chrome/browser/download/save_file.h" 5 #include "chrome/browser/download/save_file.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/download/save_types.h" 12 #include "chrome/browser/download/save_types.h"
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "chrome/common/win_util.h"
15 #include "chrome/common/win_safe_util.h" 14 #include "chrome/common/win_safe_util.h"
16 #endif 15 #endif
17 16
18 SaveFile::SaveFile(const SaveFileCreateInfo* info) 17 SaveFile::SaveFile(const SaveFileCreateInfo* info)
19 : info_(info), 18 : info_(info),
20 file_(NULL), 19 file_(NULL),
21 bytes_so_far_(0), 20 bytes_so_far_(0),
22 path_renamed_(false), 21 path_renamed_(false),
23 in_progress_(true) { 22 in_progress_(true) {
24 DCHECK(info); 23 DCHECK(info);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return false; 97 return false;
99 } 98 }
100 #if defined(OS_WIN) 99 #if defined(OS_WIN)
101 // Sets the zone to tell Windows that this file comes from the Internet. 100 // Sets the zone to tell Windows that this file comes from the Internet.
102 // We ignore the return value because a failure is not fatal. 101 // We ignore the return value because a failure is not fatal.
103 // TODO(port): Similarly mark on Mac. 102 // TODO(port): Similarly mark on Mac.
104 win_util::SetInternetZoneIdentifier(full_path_); 103 win_util::SetInternetZoneIdentifier(full_path_);
105 #endif 104 #endif
106 return true; 105 return true;
107 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698