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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 const importer::ProfileInfo& GetSourceProfileInfoAt(int index) const { | 177 const importer::ProfileInfo& GetSourceProfileInfoAt(int index) const { |
178 return importer_list_->GetSourceProfileInfoAt(index); | 178 return importer_list_->GetSourceProfileInfoAt(index); |
179 } | 179 } |
180 | 180 |
181 // Returns the ProfileInfo with the given browser type. | 181 // Returns the ProfileInfo with the given browser type. |
182 const importer::ProfileInfo& GetSourceProfileInfoForBrowserType( | 182 const importer::ProfileInfo& GetSourceProfileInfoForBrowserType( |
183 int browser_type) const { | 183 int browser_type) const { |
184 return importer_list_->GetSourceProfileInfoForBrowserType(browser_type); | 184 return importer_list_->GetSourceProfileInfoForBrowserType(browser_type); |
185 } | 185 } |
186 | 186 |
| 187 // Returns true if the source profiles have been loaded. |
| 188 bool source_profiles_loaded() const { |
| 189 return importer_list_->source_profiles_loaded(); |
| 190 } |
| 191 |
187 protected: | 192 protected: |
188 friend class base::RefCountedThreadSafe<ImporterHost>; | 193 friend class base::RefCountedThreadSafe<ImporterHost>; |
189 | 194 |
190 ~ImporterHost(); | 195 ~ImporterHost(); |
191 | 196 |
192 // Returns true if importer should import to bookmark bar. | 197 // Returns true if importer should import to bookmark bar. |
193 bool ShouldImportToBookmarkBar(bool first_run); | 198 bool ShouldImportToBookmarkBar(bool first_run); |
194 | 199 |
195 // Make sure that Firefox isn't running, if import browser is Firefox. Show | 200 // Make sure that Firefox isn't running, if import browser is Firefox. Show |
196 // the user a dialog to notify that they need to close FF to continue. | 201 // the user a dialog to notify that they need to close FF to continue. |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 // first run UI. | 537 // first run UI. |
533 void StartImportingWithUI(gfx::NativeWindow parent_window, | 538 void StartImportingWithUI(gfx::NativeWindow parent_window, |
534 uint16 items, | 539 uint16 items, |
535 ImporterHost* coordinator, | 540 ImporterHost* coordinator, |
536 const importer::ProfileInfo& source_profile, | 541 const importer::ProfileInfo& source_profile, |
537 Profile* target_profile, | 542 Profile* target_profile, |
538 ImportObserver* observer, | 543 ImportObserver* observer, |
539 bool first_run); | 544 bool first_run); |
540 | 545 |
541 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ | 546 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ |
OLD | NEW |