• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_TYPE_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_TYPE_H_
7 #pragma once
8 
9 #include "build/build_config.h"
10 
11 class Importer;
12 
13 namespace importer {
14 
15 // An enumeration of the type of importers that we support to import
16 // settings and data from (browsers, google toolbar and a bookmarks html file).
17 // NOTE: Numbers added so that data can be reliably cast to ints and passed
18 // across IPC.
19 enum ImporterType {
20   NONE_IMPORTER = -1,
21 #if defined(OS_WIN)
22   MS_IE = 0,
23 #endif
24   FIREFOX2 = 1,
25   FIREFOX3 = 2,  // Firefox 3 and later.
26 #if defined(OS_MACOSX)
27   SAFARI = 3,
28 #endif
29   GOOGLE_TOOLBAR5 = 4,
30   // Identifies a 'bookmarks.html' file.
31   BOOKMARKS_HTML = 5
32 };
33 
34 Importer* CreateImporterByType(ImporterType type);
35 
36 }  // namespace importer
37 
38 #endif  // CHROME_BROWSER_IMPORTER_IMPORTER_TYPE_H_
39