summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer_type.h
blob: 89c6f681d038628b1f4c5363173c3f4081b924b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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_TYPE_H_
#define CHROME_BROWSER_IMPORTER_IMPORTER_TYPE_H_
#pragma once

#include "build/build_config.h"

class Importer;

namespace importer {

// An enumeration of the type of importers that we support to import
// settings and data from (browsers, google toolbar and a bookmarks html file).
// NOTE: Numbers added so that data can be reliably cast to ints and passed
// across IPC.
enum ImporterType {
  TYPE_UNKNOWN         = -1,
#if defined(OS_WIN)
  TYPE_IE              = 0,
#endif
  TYPE_FIREFOX2        = 1,
  TYPE_FIREFOX3        = 2,  // Firefox 3 and later.
#if defined(OS_MACOSX)
  TYPE_SAFARI          = 3,
#endif
  TYPE_GOOGLE_TOOLBAR5 = 4,
  // Identifies a 'bookmarks.html' file.
  TYPE_BOOKMARKS_FILE  = 5
};

Importer* CreateImporterByType(ImporterType type);

}  // namespace importer

#endif  // CHROME_BROWSER_IMPORTER_IMPORTER_TYPE_H_