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

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

Issue 538403002: Change base/file_utils.h includes to base/files/file_utils.h in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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/file_metadata_linux.h" 5 #include "content/browser/download/file_metadata_linux.h"
6 6
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <sys/xattr.h> 8 #include <sys/xattr.h>
9 9
10 #include "base/file_util.h"
11 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 const char kSourceURLAttrName[] = "user.xdg.origin.url"; 17 const char kSourceURLAttrName[] = "user.xdg.origin.url";
18 const char kReferrerURLAttrName[] = "user.xdg.referrer.url"; 18 const char kReferrerURLAttrName[] = "user.xdg.referrer.url";
19 19
20 static void SetExtendedFileAttribute(const char* path, const char* name, 20 static void SetExtendedFileAttribute(const char* path, const char* name,
21 const char* value, size_t value_size, 21 const char* value, size_t value_size,
(...skipping 12 matching lines...) Expand all
34 SetExtendedFileAttribute(file.value().c_str(), kSourceURLAttrName, 34 SetExtendedFileAttribute(file.value().c_str(), kSourceURLAttrName,
35 source.spec().c_str(), source.spec().length(), 0); 35 source.spec().c_str(), source.spec().length(), 0);
36 } 36 }
37 if (referrer.is_valid()) { 37 if (referrer.is_valid()) {
38 SetExtendedFileAttribute(file.value().c_str(), kReferrerURLAttrName, 38 SetExtendedFileAttribute(file.value().c_str(), kReferrerURLAttrName,
39 referrer.spec().c_str(), referrer.spec().length(), 0); 39 referrer.spec().c_str(), referrer.spec().length(), 0);
40 } 40 }
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/download/file_metadata_unittest_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698