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_LIST_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ |
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 std::wstring GetSourceProfileNameAt(int index) const; | 54 std::wstring GetSourceProfileNameAt(int index) const; |
55 | 55 |
56 // Returns the ProfileInfo at the specified index. The ProfileInfo should be | 56 // Returns the ProfileInfo at the specified index. The ProfileInfo should be |
57 // passed to StartImportSettings(). | 57 // passed to StartImportSettings(). |
58 const importer::ProfileInfo& GetSourceProfileInfoAt(int index) const; | 58 const importer::ProfileInfo& GetSourceProfileInfoAt(int index) const; |
59 | 59 |
60 // Returns the ProfileInfo with the given browser type. | 60 // Returns the ProfileInfo with the given browser type. |
61 const importer::ProfileInfo& GetSourceProfileInfoForBrowserType( | 61 const importer::ProfileInfo& GetSourceProfileInfoForBrowserType( |
62 int browser_type) const; | 62 int browser_type) const; |
63 | 63 |
| 64 // Returns true if the source profiles have been loaded. |
| 65 bool source_profiles_loaded() const; |
| 66 |
64 private: | 67 private: |
65 friend class base::RefCountedThreadSafe<ImporterList>; | 68 friend class base::RefCountedThreadSafe<ImporterList>; |
66 | 69 |
67 ~ImporterList(); | 70 ~ImporterList(); |
68 | 71 |
69 // The worker method for DetectSourceProfiles(). Must be called on the FILE | 72 // The worker method for DetectSourceProfiles(). Must be called on the FILE |
70 // thread. | 73 // thread. |
71 void DetectSourceProfilesWorker(); | 74 void DetectSourceProfilesWorker(); |
72 | 75 |
73 // Called by DetectSourceProfilesWorker() on the source thread. This method | 76 // Called by DetectSourceProfilesWorker() on the source thread. This method |
(...skipping 14 matching lines...) Expand all Loading... |
88 // SourceProfilesLoaded() has returned. | 91 // SourceProfilesLoaded() has returned. |
89 Observer* observer_; | 92 Observer* observer_; |
90 | 93 |
91 // True if source profiles are loaded. | 94 // True if source profiles are loaded. |
92 bool source_profiles_loaded_; | 95 bool source_profiles_loaded_; |
93 | 96 |
94 DISALLOW_COPY_AND_ASSIGN(ImporterList); | 97 DISALLOW_COPY_AND_ASSIGN(ImporterList); |
95 }; | 98 }; |
96 | 99 |
97 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ | 100 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ |
OLD | NEW |