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

Unified Diff: chrome/browser/browsing_data_helper_browsertest.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_helper.cc ('k') | chrome/browser/browsing_data_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_helper_browsertest.h
diff --git a/chrome/browser/browsing_data_helper_browsertest.h b/chrome/browser/browsing_data_helper_browsertest.h
deleted file mode 100644
index 883ed6ed235fc8ee909d46b6bdb73790db491c7d..0000000000000000000000000000000000000000
--- a/chrome/browser/browsing_data_helper_browsertest.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 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.
-
-// Contains code shared by all browsing data browsertests.
-
-#ifndef CHROME_BROWSER_BROWSING_DATA_HELPER_BROWSERTEST_H_
-#define CHROME_BROWSER_BROWSING_DATA_HELPER_BROWSERTEST_H_
-
-#include <list>
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-#include "base/message_loop.h"
-
-// This template can be used for the StartFetching methods of the browsing data
-// helper classes. It is supposed to be instantiated with the respective
-// browsing data info type.
-template <typename T>
-class BrowsingDataHelperCallback {
- public:
- BrowsingDataHelperCallback()
- : has_result_(false) {
- }
-
- const std::list<T>& result() {
- MessageLoop::current()->Run();
- DCHECK(has_result_);
- return result_;
- }
-
- void callback(const std::list<T>& info) {
- result_ = info;
- has_result_ = true;
- MessageLoop::current()->Quit();
- }
-
- private:
- bool has_result_;
- std::list<T> result_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowsingDataHelperCallback);
-};
-
-#endif // CHROME_BROWSER_BROWSING_DATA_HELPER_BROWSERTEST_H_
« no previous file with comments | « chrome/browser/browsing_data_helper.cc ('k') | chrome/browser/browsing_data_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698