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

Unified Diff: chrome/browser/mock_browsing_data_file_system_helper.cc

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
Index: chrome/browser/mock_browsing_data_file_system_helper.cc
diff --git a/chrome/browser/mock_browsing_data_file_system_helper.cc b/chrome/browser/mock_browsing_data_file_system_helper.cc
deleted file mode 100644
index 49932b1a719e0ec0200bcafdfd1c942b7d64f63b..0000000000000000000000000000000000000000
--- a/chrome/browser/mock_browsing_data_file_system_helper.cc
+++ /dev/null
@@ -1,61 +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.
-
-#include "base/callback.h"
-#include "base/logging.h"
-#include "chrome/browser/mock_browsing_data_file_system_helper.h"
-
-MockBrowsingDataFileSystemHelper::MockBrowsingDataFileSystemHelper(
- Profile* profile) {
-}
-
-MockBrowsingDataFileSystemHelper::~MockBrowsingDataFileSystemHelper() {
-}
-
-void MockBrowsingDataFileSystemHelper::StartFetching(
- const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) {
- callback_ = callback;
-}
-
-void MockBrowsingDataFileSystemHelper::DeleteFileSystemOrigin(
- const GURL& origin) {
- std::string key = origin.spec();
- CHECK(file_systems_.find(key) != file_systems_.end());
- last_deleted_origin_ = origin;
- file_systems_[key] = false;
-}
-
-void MockBrowsingDataFileSystemHelper::AddFileSystem(
- const GURL& origin, bool has_persistent, bool has_temporary) {
- response_.push_back(BrowsingDataFileSystemHelper::FileSystemInfo(
- origin, has_persistent, has_temporary, 0, 0));
- file_systems_[origin.spec()] = true;
-}
-
-void MockBrowsingDataFileSystemHelper::AddFileSystemSamples() {
- AddFileSystem(GURL("http://fshost1:1/"), false, true);
- AddFileSystem(GURL("http://fshost2:2/"), true, false);
- AddFileSystem(GURL("http://fshost3:3/"), true, true);
-}
-
-void MockBrowsingDataFileSystemHelper::Notify() {
- CHECK_EQ(false, callback_.is_null());
- callback_.Run(response_);
-}
-
-void MockBrowsingDataFileSystemHelper::Reset() {
- for (std::map<const std::string, bool>::iterator i = file_systems_.begin();
- i != file_systems_.end(); ++i)
- i->second = true;
-}
-
-bool MockBrowsingDataFileSystemHelper::AllDeleted() {
- for (std::map<const std::string, bool>::const_iterator i =
- file_systems_.begin();
- i != file_systems_.end(); ++i) {
- if (i->second)
- return false;
- }
- return true;
-}
« no previous file with comments | « chrome/browser/mock_browsing_data_file_system_helper.h ('k') | chrome/browser/mock_browsing_data_indexed_db_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698