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

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

Issue 2106015: Move data types used in the importer process to common/, in preparation for i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer_data_types.h
===================================================================
--- chrome/browser/importer/importer_data_types.h (revision 47674)
+++ chrome/browser/importer/importer_data_types.h (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2010 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_DATA_TYPES_H_
-#define CHROME_BROWSER_IMPORTER_IMPORTER_DATA_TYPES_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/file_path.h"
-
-// Types needed for importing data from other browsers and the Google
-// Toolbar.
-namespace importer {
-
-// An enumeration of the type of data that can be imported.
-enum ImportItem {
- NONE = 0,
- HISTORY = 1 << 0,
- FAVORITES = 1 << 1,
- COOKIES = 1 << 2, // Not supported yet.
- PASSWORDS = 1 << 3,
- SEARCH_ENGINES = 1 << 4,
- HOME_PAGE = 1 << 5,
- ALL = (1 << 6) - 1 // All the bits should be 1, hence the -1.
-};
-
-// An enumeration of the type of browsers that we support to import
-// settings and data from them. Numbers added so that data can be
-// reliably cast to ints and passed across IPC.
-enum ProfileType {
-#if defined(OS_WIN)
- MS_IE = 0,
-#endif
- FIREFOX2 = 1,
- FIREFOX3 = 2,
-#if defined(OS_MACOSX)
- SAFARI = 3,
-#endif
- GOOGLE_TOOLBAR5 = 4,
- // Identifies a 'bookmarks.html' file.
- BOOKMARKS_HTML = 5
-};
-
-// Information about a profile needed by an importer to do import work.
-struct ProfileInfo {
- std::wstring description;
- importer::ProfileType browser_type;
- FilePath source_path;
- FilePath app_path;
- uint16 services_supported; // Bitmask of ImportItem.
-};
-
-} // namespace importer
-
-#endif // CHROME_BROWSER_IMPORTER_IMPORTER_DATA_TYPES_H_
-
« no previous file with comments | « chrome/browser/importer/importer_bridge.h ('k') | chrome/browser/importer/importer_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698