OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 // import logic. And it will be run in file thread by ImporterHost. | 457 // import logic. And it will be run in file thread by ImporterHost. |
458 // | 458 // |
459 // Since we do async import, the importer should invoke | 459 // Since we do async import, the importer should invoke |
460 // ImporterHost::Finished() to notify its host that import | 460 // ImporterHost::Finished() to notify its host that import |
461 // stuff have been finished. | 461 // stuff have been finished. |
462 virtual void StartImport(const importer::ProfileInfo& profile_info, | 462 virtual void StartImport(const importer::ProfileInfo& profile_info, |
463 uint16 items, | 463 uint16 items, |
464 ImporterBridge* bridge) = 0; | 464 ImporterBridge* bridge) = 0; |
465 | 465 |
466 // Cancels the import process. | 466 // Cancels the import process. |
467 virtual void Cancel() { cancelled_ = true; } | 467 virtual void Cancel(); |
468 | 468 |
469 void set_import_to_bookmark_bar(bool import_to_bookmark_bar) { | 469 void set_import_to_bookmark_bar(bool import_to_bookmark_bar) { |
470 import_to_bookmark_bar_ = import_to_bookmark_bar; | 470 import_to_bookmark_bar_ = import_to_bookmark_bar; |
471 } | 471 } |
472 | 472 |
473 void set_bookmark_bar_disabled(bool bookmark_bar_disabled) { | 473 void set_bookmark_bar_disabled(bool bookmark_bar_disabled) { |
474 bookmark_bar_disabled_ = bookmark_bar_disabled; | 474 bookmark_bar_disabled_ = bookmark_bar_disabled; |
475 } | 475 } |
476 | 476 |
477 bool bookmark_bar_disabled() { | 477 bool bookmark_bar_disabled() { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // first run UI. | 532 // first run UI. |
533 void StartImportingWithUI(gfx::NativeWindow parent_window, | 533 void StartImportingWithUI(gfx::NativeWindow parent_window, |
534 uint16 items, | 534 uint16 items, |
535 ImporterHost* coordinator, | 535 ImporterHost* coordinator, |
536 const importer::ProfileInfo& source_profile, | 536 const importer::ProfileInfo& source_profile, |
537 Profile* target_profile, | 537 Profile* target_profile, |
538 ImportObserver* observer, | 538 ImportObserver* observer, |
539 bool first_run); | 539 bool first_run); |
540 | 540 |
541 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 541 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
OLD | NEW |