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

Unified Diff: webkit/common/data_element.cc

Issue 524983002: Move fileapi-related files from webkit/common/ to storage/common/ and set up redirect headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/common/data_element.h ('k') | webkit/common/database/database_connections.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/data_element.cc
diff --git a/webkit/common/data_element.cc b/webkit/common/data_element.cc
deleted file mode 100644
index 024abe4824a25cc5f94b5bdfcc167658039fd988..0000000000000000000000000000000000000000
--- a/webkit/common/data_element.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// 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"
-
-namespace storage {
-
-DataElement::DataElement()
- : type_(TYPE_UNKNOWN),
- bytes_(NULL),
- offset_(0),
- length_(kuint64max) {
-}
-
-DataElement::~DataElement() {}
-
-void DataElement::SetToFilePathRange(
- const base::FilePath& path,
- uint64 offset, uint64 length,
- const base::Time& expected_modification_time) {
- type_ = TYPE_FILE;
- path_ = path;
- offset_ = offset;
- length_ = length;
- expected_modification_time_ = expected_modification_time;
-}
-
-void DataElement::SetToBlobRange(
- const std::string& blob_uuid,
- uint64 offset, uint64 length) {
- type_ = TYPE_BLOB;
- blob_uuid_ = blob_uuid;
- offset_ = offset;
- length_ = length;
-}
-
-void DataElement::SetToFileSystemUrlRange(
- const GURL& filesystem_url,
- uint64 offset, uint64 length,
- const base::Time& expected_modification_time) {
- type_ = TYPE_FILE_FILESYSTEM;
- filesystem_url_ = filesystem_url;
- offset_ = offset;
- length_ = length;
- expected_modification_time_ = expected_modification_time;
-}
-
-} // webkit_common
« no previous file with comments | « webkit/common/data_element.h ('k') | webkit/common/database/database_connections.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698