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

Unified Diff: chrome/browser/browsing_data_quota_helper_impl.h

Issue 10805015: Move browsing_data_helper files into a separate directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chrome_frame build Created 8 years, 5 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 | « chrome/browser/browsing_data_quota_helper.cc ('k') | chrome/browser/browsing_data_quota_helper_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_quota_helper_impl.h
diff --git a/chrome/browser/browsing_data_quota_helper_impl.h b/chrome/browser/browsing_data_quota_helper_impl.h
deleted file mode 100644
index 832e93e16ee5282b5416ecdcaa7f050cb1d0ae9d..0000000000000000000000000000000000000000
--- a/chrome/browser/browsing_data_quota_helper_impl.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
-#define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
-
-#include <map>
-#include <set>
-#include <string>
-#include <utility>
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "base/time.h"
-#include "chrome/browser/browsing_data_quota_helper.h"
-#include "content/public/browser/browser_thread.h"
-#include "webkit/quota/quota_types.h"
-
-namespace quota {
-class QuotaManager;
-}
-
-// Implementation of BrowsingDataQuotaHelper. Since a client of
-// BrowsingDataQuotaHelper should live in UI thread and QuotaManager lives in
-// IO thread, we have to communicate over thread using PostTask.
-class BrowsingDataQuotaHelperImpl : public BrowsingDataQuotaHelper {
- public:
- virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE;
- virtual void RevokeHostQuota(const std::string& host) OVERRIDE;
-
- private:
- BrowsingDataQuotaHelperImpl(base::MessageLoopProxy* ui_thread,
- base::MessageLoopProxy* io_thread,
- quota::QuotaManager* quota_manager);
- virtual ~BrowsingDataQuotaHelperImpl();
-
- void FetchQuotaInfo();
-
- // Callback function for GetOriginModifiedSince.
- void GotOrigins(const std::set<GURL>& origins, quota::StorageType type);
-
- void ProcessPendingHosts();
- void GetHostUsage(const std::string& host, quota::StorageType type);
-
- // Callback function for GetHostUsage.
- void GotHostUsage(const std::string& host,
- quota::StorageType type,
- int64 usage);
-
- void OnComplete();
- void DidRevokeHostQuota(quota::QuotaStatusCode status,
- const std::string& host,
- quota::StorageType type,
- int64 quota);
-
- scoped_refptr<quota::QuotaManager> quota_manager_;
- FetchResultCallback callback_;
-
- typedef std::set<std::pair<std::string, quota::StorageType> > PendingHosts;
- PendingHosts pending_hosts_;
- std::map<std::string, QuotaInfo> quota_info_;
-
- bool is_fetching_;
-
- scoped_refptr<base::MessageLoopProxy> ui_thread_;
- scoped_refptr<base::MessageLoopProxy> io_thread_;
- base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_;
-
- friend class BrowsingDataQuotaHelper;
- friend class BrowsingDataQuotaHelperTest;
-
- DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl);
-};
-
-#endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
« no previous file with comments | « chrome/browser/browsing_data_quota_helper.cc ('k') | chrome/browser/browsing_data_quota_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698