Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 } | 29 } |
| 30 | 30 |
| 31 // An enumeration of the type of browsers that we support to import | 31 // An enumeration of the type of browsers that we support to import |
| 32 // settings and data from them. | 32 // settings and data from them. |
| 33 enum ProfileType { | 33 enum ProfileType { |
| 34 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
| 35 MS_IE, | 35 MS_IE, |
| 36 #endif | 36 #endif |
| 37 FIREFOX2, | 37 FIREFOX2, |
| 38 FIREFOX3, | 38 FIREFOX3, |
| 39 SAFARI, | |
|
stuartmorgan
2009/07/29 20:22:37
ifdef-ing here too?
| |
| 39 GOOGLE_TOOLBAR5, | 40 GOOGLE_TOOLBAR5, |
| 40 // Identifies a 'bookmarks.html' file. | 41 // Identifies a 'bookmarks.html' file. |
| 41 BOOKMARKS_HTML | 42 BOOKMARKS_HTML |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 // An enumeration of the type of data we want to import. | 45 // An enumeration of the type of data we want to import. |
| 45 enum ImportItem { | 46 enum ImportItem { |
| 46 NONE = 0x0000, | 47 NONE = 0x0000, |
| 47 HISTORY = 0x0001, | 48 HISTORY = 0x0001, |
| 48 FAVORITES = 0x0002, | 49 FAVORITES = 0x0002, |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 // stores their information in a list. It returns the list of description | 286 // stores their information in a list. It returns the list of description |
| 286 // of all profiles. | 287 // of all profiles. |
| 287 void DetectSourceProfiles(); | 288 void DetectSourceProfiles(); |
| 288 | 289 |
| 289 // Helper methods for detecting available profiles. | 290 // Helper methods for detecting available profiles. |
| 290 #if defined(OS_WIN) | 291 #if defined(OS_WIN) |
| 291 void DetectIEProfiles(); | 292 void DetectIEProfiles(); |
| 292 #endif | 293 #endif |
| 293 void DetectFirefoxProfiles(); | 294 void DetectFirefoxProfiles(); |
| 294 void DetectGoogleToolbarProfiles(); | 295 void DetectGoogleToolbarProfiles(); |
| 296 #if defined(OS_MACOSX) | |
| 297 void DetectSafariProfiles(); | |
| 298 #endif | |
| 295 | 299 |
| 296 NotificationRegistrar registrar_; | 300 NotificationRegistrar registrar_; |
| 297 | 301 |
| 298 // The list of profiles with the default one first. | 302 // The list of profiles with the default one first. |
| 299 std::vector<ProfileInfo*> source_profiles_; | 303 std::vector<ProfileInfo*> source_profiles_; |
| 300 | 304 |
| 301 Observer* observer_; | 305 Observer* observer_; |
| 302 scoped_refptr<ProfileWriter> writer_; | 306 scoped_refptr<ProfileWriter> writer_; |
| 303 | 307 |
| 304 // The task is the process of importing settings from other browsers. | 308 // The task is the process of importing settings from other browsers. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 424 void StartImportingWithUI(gfx::NativeWindow parent_window, | 428 void StartImportingWithUI(gfx::NativeWindow parent_window, |
| 425 int16 items, | 429 int16 items, |
| 426 ImporterHost* coordinator, | 430 ImporterHost* coordinator, |
| 427 const ProfileInfo& source_profile, | 431 const ProfileInfo& source_profile, |
| 428 Profile* target_profile, | 432 Profile* target_profile, |
| 429 ImportObserver* observer, | 433 ImportObserver* observer, |
| 430 bool first_run); | 434 bool first_run); |
| 431 #endif | 435 #endif |
| 432 | 436 |
| 433 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 437 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
| OLD | NEW |