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

Unified Diff: webkit/base/data_element.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_storage_impl_unittest.cc ('k') | webkit/base/data_element.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/base/data_element.h
diff --git a/webkit/base/data_element.h b/webkit/base/data_element.h
index 4a5c7268dc7b5db10acde3c064b43c769999a9a4..3e286baa743b69f2effc6fc17172ffd0a114e6e6 100644
--- a/webkit/base/data_element.h
+++ b/webkit/base/data_element.h
@@ -33,7 +33,7 @@ class WEBKIT_BASE_EXPORT DataElement {
Type type() const { return type_; }
const char* bytes() const { return bytes_ ? bytes_ : &buf_[0]; }
- const FilePath& path() const { return path_; }
+ const base::FilePath& path() const { return path_; }
const GURL& url() const { return url_; }
uint64 offset() const { return offset_; }
uint64 length() const { return length_; }
@@ -57,7 +57,7 @@ class WEBKIT_BASE_EXPORT DataElement {
}
// Sets TYPE_FILE data.
- void SetToFilePath(const FilePath& path) {
+ void SetToFilePath(const base::FilePath& path) {
SetToFilePathRange(path, 0, kuint64max, base::Time());
}
@@ -67,7 +67,7 @@ class WEBKIT_BASE_EXPORT DataElement {
}
// Sets TYPE_FILE data with range.
- void SetToFilePathRange(const FilePath& path,
+ void SetToFilePathRange(const base::FilePath& path,
uint64 offset, uint64 length,
const base::Time& expected_modification_time);
@@ -84,7 +84,7 @@ class WEBKIT_BASE_EXPORT DataElement {
Type type_;
std::vector<char> buf_; // For TYPE_BYTES.
const char* bytes_; // For TYPE_BYTES.
- FilePath path_; // For TYPE_FILE.
+ base::FilePath path_; // For TYPE_FILE.
GURL url_; // For TYPE_BLOB or TYPE_FILE_FILESYSTEM.
uint64 offset_;
uint64 length_;
« no previous file with comments | « webkit/appcache/appcache_storage_impl_unittest.cc ('k') | webkit/base/data_element.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698