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

Unified Diff: webkit/browser/quota/storage_observer.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build 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/browser/quota/storage_observer.h ('k') | webkit/browser/quota/usage_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/quota/storage_observer.cc
diff --git a/webkit/browser/quota/storage_observer.cc b/webkit/browser/quota/storage_observer.cc
deleted file mode 100644
index ec0fe23bcf7543a8a17e1227b65bd347db31fa23..0000000000000000000000000000000000000000
--- a/webkit/browser/quota/storage_observer.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 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/browser/quota/storage_observer.h"
-
-namespace storage {
-
-// StorageObserver::Filter
-
-StorageObserver::Filter::Filter()
- : storage_type(kStorageTypeUnknown) {
-}
-
-StorageObserver::Filter::Filter(StorageType storage_type, const GURL& origin)
- : storage_type(storage_type), origin(origin) {
-}
-
-bool StorageObserver::Filter::operator==(const Filter& other) const {
- return storage_type == other.storage_type &&
- origin == other.origin;
-}
-
-// StorageObserver::MonitorParams
-
-StorageObserver::MonitorParams::MonitorParams()
- : dispatch_initial_state(false) {
-}
-
-StorageObserver::MonitorParams::MonitorParams(
- StorageType storage_type,
- const GURL& origin,
- const base::TimeDelta& rate,
- bool get_initial_state)
- : filter(storage_type, origin),
- rate(rate),
- dispatch_initial_state(get_initial_state) {
-}
-
-StorageObserver::MonitorParams::MonitorParams(
- const Filter& filter,
- const base::TimeDelta& rate,
- bool get_initial_state)
- : filter(filter),
- rate(rate),
- dispatch_initial_state(get_initial_state) {
-}
-
-// StorageObserver::Event
-
-StorageObserver::Event::Event()
- : usage(0), quota(0) {
-}
-
-StorageObserver::Event::Event(const Filter& filter, int64 usage, int64 quota)
- : filter(filter), usage(usage), quota(quota) {
-}
-
-bool StorageObserver::Event::operator==(const Event& other) const {
- return filter == other.filter &&
- usage == other.usage &&
- quota == other.quota;
-}
-
-} // namespace storage
« no previous file with comments | « webkit/browser/quota/storage_observer.h ('k') | webkit/browser/quota/usage_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698