Skip to content

Commit

Permalink
Move QuotaLimitType to its own file
Browse files Browse the repository at this point in the history
Move QuotaLimitType to its own header file. This is pre-work for moving
StorageType to third_party/WebKit/common.

Bug: 781643
Change-Id: I511f3d4992c8adf1f1a46c30fff4e8ddbbdaf36b
Reviewed-on: https://chromium-review.googlesource.com/822319
Commit-Queue: Sasha Morrissey <sashab@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524961}
  • Loading branch information
Sasha Bermeister authored and Commit Bot committed Dec 19, 2017
1 parent 76f7a6b commit f403016
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion content/common/fileapi/file_system_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "storage/common/fileapi/directory_entry.h"
#include "storage/common/fileapi/file_system_info.h"
#include "storage/common/fileapi/file_system_types.h"
#include "storage/common/quota/quota_types.h"
#include "storage/common/quota/quota_limit_type.h"
#include "url/gurl.h"

#undef IPC_MESSAGE_EXPORT
Expand Down
2 changes: 1 addition & 1 deletion content/renderer/fileapi/file_system_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "ipc/ipc_listener.h"
#include "ipc/ipc_platform_file.h"
#include "storage/common/fileapi/file_system_types.h"
#include "storage/common/quota/quota_types.h"
#include "storage/common/quota/quota_limit_type.h"

namespace base {
class FilePath;
Expand Down
2 changes: 1 addition & 1 deletion storage/browser/fileapi/file_system_operation_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "base/threading/thread_checker.h"
#include "storage/browser/fileapi/task_runner_bound_observer_list.h"
#include "storage/browser/storage_browser_export.h"
#include "storage/common/quota/quota_types.h"
#include "storage/common/quota/quota_limit_type.h"

namespace base {
class SequencedTaskRunner;
Expand Down
1 change: 1 addition & 0 deletions storage/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ component("common") {
"fileapi/file_system_types.h",
"fileapi/file_system_util.cc",
"fileapi/file_system_util.h",
"quota/quota_limit_type.h",
"quota/quota_types.h",
"storage_common_export.h",
"storage_histograms.cc",
Expand Down
19 changes: 19 additions & 0 deletions storage/common/quota/quota_limit_type.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2017 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.

#ifndef STORAGE_COMMON_QUOTA_QUOTA_LIMIT_TYPE_H_
#define STORAGE_COMMON_QUOTA_QUOTA_LIMIT_TYPE_H_

namespace storage {

enum QuotaLimitType {
kQuotaLimitTypeUnknown,
kQuotaLimitTypeLimited,
kQuotaLimitTypeUnlimited,
kQuotaLimitTypeLast = kQuotaLimitTypeUnlimited
};

} // namespace storage

#endif // STORAGE_COMMON_QUOTA_QUOTA_LIMIT_TYPE_H_
7 changes: 0 additions & 7 deletions storage/common/quota/quota_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ enum StorageType {
kStorageTypeLast = kStorageTypeUnknown
};

enum QuotaLimitType {
kQuotaLimitTypeUnknown,
kQuotaLimitTypeLimited,
kQuotaLimitTypeUnlimited,
kQuotaLimitTypeLast = kQuotaLimitTypeUnlimited
};

} // namespace storage

#endif // STORAGE_COMMON_QUOTA_QUOTA_TYPES_H_

0 comments on commit f403016

Please sign in to comment.