Home | History | Annotate | Download | only in importer
      1 // Copyright 2013 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_COMMON_IMPORTER_IMPORTER_TYPE_H_
      6 #define CHROME_COMMON_IMPORTER_IMPORTER_TYPE_H_
      7 
      8 #include "build/build_config.h"
      9 
     10 namespace importer {
     11 
     12 // An enumeration of the type of importers that we support to import
     13 // settings and data from (browsers, google toolbar and a bookmarks html file).
     14 // NOTE: Numbers added so that data can be reliably cast to ints and passed
     15 // across IPC.
     16 enum ImporterType {
     17   TYPE_UNKNOWN         = -1,
     18 #if defined(OS_WIN)
     19   TYPE_IE              = 0,
     20 #endif
     21   // Value 1 was the (now deleted) Firefox 2 profile importer.
     22   TYPE_FIREFOX         = 2,
     23 #if defined(OS_MACOSX)
     24   TYPE_SAFARI          = 3,
     25 #endif
     26   // Value 4 was the (now deleted) Google Toolbar importer.
     27   TYPE_BOOKMARKS_FILE  = 5  // Identifies a 'bookmarks.html' file.
     28 };
     29 
     30 }  // namespace importer
     31 
     32 
     33 #endif  // CHROME_COMMON_IMPORTER_IMPORTER_TYPE_H_
     34