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

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

Issue 18555005: Move importer messages to common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/importer_bridge.h ('k') | chrome/browser/importer/importer_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer_creator.h
diff --git a/chrome/browser/importer/importer_creator.h b/chrome/browser/importer/importer_creator.h
new file mode 100644
index 0000000000000000000000000000000000000000..d84c1112bfa40c2c90a76286a6e2d3a991dafc89
--- /dev/null
+++ b/chrome/browser/importer/importer_creator.h
@@ -0,0 +1,28 @@
+// 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_CREATOR_H_
+#define CHROME_BROWSER_IMPORTER_IMPORTER_CREATOR_H_
+
+#include <string>
+
+#include "chrome/common/importer/importer_type.h"
+
+class Importer;
+
+namespace importer {
+
+// Creates an Importer of the specified |type|.
+Importer* CreateImporterByType(ImporterType type);
+
+// Logs to UMA that an Importer of the specified |type| was used. Uses
+// |metric_postfix| to split by entry point. Note: Values passed via
+// |metric_postfix| require a matching "Import.ImporterType.|metric_postfix|"
+// entry in tools/metrics/histograms/histograms.xml.
+void LogImporterUseToMetrics(const std::string& metric_prefix,
+ ImporterType type);
+
+} // namespace importer
+
+#endif // CHROME_BROWSER_IMPORTER_IMPORTER_CREATOR_H_
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/importer_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698