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

Unified Diff: storage/common/data_element.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | « storage/common/data_element.h ('k') | storage/common/database/database_connections.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/common/data_element.cc
diff --git a/webkit/common/data_element.cc b/storage/common/data_element.cc
similarity index 69%
rename from webkit/common/data_element.cc
rename to storage/common/data_element.cc
index f94a4c887b6a28d3813b4ec49eebc864ac2d5c54..a4b073b670a3ceaa4d557324b4f1e81def936112 100644
--- a/webkit/common/data_element.cc
+++ b/storage/common/data_element.cc
@@ -2,22 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/common/data_element.h"
+#include "storage/common/data_element.h"
namespace webkit_common {
DataElement::DataElement()
- : type_(TYPE_UNKNOWN),
- bytes_(NULL),
- offset_(0),
- length_(kuint64max) {
+ : type_(TYPE_UNKNOWN), bytes_(NULL), offset_(0), length_(kuint64max) {
}
-DataElement::~DataElement() {}
+DataElement::~DataElement() {
+}
void DataElement::SetToFilePathRange(
const base::FilePath& path,
- uint64 offset, uint64 length,
+ uint64 offset,
+ uint64 length,
const base::Time& expected_modification_time) {
type_ = TYPE_FILE;
path_ = path;
@@ -26,9 +25,9 @@ void DataElement::SetToFilePathRange(
expected_modification_time_ = expected_modification_time;
}
-void DataElement::SetToBlobRange(
- const std::string& blob_uuid,
- uint64 offset, uint64 length) {
+void DataElement::SetToBlobRange(const std::string& blob_uuid,
+ uint64 offset,
+ uint64 length) {
type_ = TYPE_BLOB;
blob_uuid_ = blob_uuid;
offset_ = offset;
@@ -37,7 +36,8 @@ void DataElement::SetToBlobRange(
void DataElement::SetToFileSystemUrlRange(
const GURL& filesystem_url,
- uint64 offset, uint64 length,
+ uint64 offset,
+ uint64 length,
const base::Time& expected_modification_time) {
type_ = TYPE_FILE_FILESYSTEM;
filesystem_url_ = filesystem_url;
« no previous file with comments | « storage/common/data_element.h ('k') | storage/common/database/database_connections.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698