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

Unified Diff: chrome/browser/importer/importer.h

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 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/importer/ie_importer_utils_win.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer.h
diff --git a/chrome/browser/importer/importer.h b/chrome/browser/importer/importer.h
deleted file mode 100644
index a2f2340140455606f2f35a71e082f8d24e45dc63..0000000000000000000000000000000000000000
--- a/chrome/browser/importer/importer.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef CHROME_BROWSER_IMPORTER_IMPORTER_H_
-#define CHROME_BROWSER_IMPORTER_IMPORTER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-
-class ImporterBridge;
-
-namespace importer {
-struct SourceProfile;
-}
-
-// The base class of all importers.
-class Importer : public base::RefCountedThreadSafe<Importer> {
- public:
- // All importers should implement this method by adding their import logic.
- // And it will be run in file thread by ImporterHost. Since we do async
- // import, the importer should invoke ImporterHost::NotifyImportEnded() to
- // notify its host that import stuff have been finished.
- virtual void StartImport(const importer::SourceProfile& source_profile,
- uint16 items,
- ImporterBridge* bridge) = 0;
-
- // Cancels the import process.
- virtual void Cancel();
-
- bool cancelled() const { return cancelled_; }
-
- protected:
- friend class base::RefCountedThreadSafe<Importer>;
-
- Importer();
- virtual ~Importer();
-
- scoped_refptr<ImporterBridge> bridge_;
-
- private:
- // True if the caller cancels the import process.
- bool cancelled_;
-
- DISALLOW_COPY_AND_ASSIGN(Importer);
-};
-
-#endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_
« no previous file with comments | « chrome/browser/importer/ie_importer_utils_win.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698