| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 14 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 15 #include "chrome/common/importer/importer_data_types.h" | 17 #include "chrome/common/importer/importer_data_types.h" |
| 16 | 18 |
| 17 // ImporterList detects installed browsers and profiles via | 19 // ImporterList detects installed browsers and profiles via |
| 18 // DetectSourceProfilesWorker(). ImporterList lives on the UI thread. | 20 // DetectSourceProfilesWorker(). ImporterList lives on the UI thread. |
| 19 class ImporterList { | 21 class ImporterList { |
| 20 public: | 22 public: |
| 21 ImporterList(); | 23 ImporterList(); |
| 22 ~ImporterList(); | 24 ~ImporterList(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 51 | 53 |
| 52 // The list of profiles with the default one first. | 54 // The list of profiles with the default one first. |
| 53 std::vector<importer::SourceProfile> source_profiles_; | 55 std::vector<importer::SourceProfile> source_profiles_; |
| 54 | 56 |
| 55 base::WeakPtrFactory<ImporterList> weak_ptr_factory_; | 57 base::WeakPtrFactory<ImporterList> weak_ptr_factory_; |
| 56 | 58 |
| 57 DISALLOW_COPY_AND_ASSIGN(ImporterList); | 59 DISALLOW_COPY_AND_ASSIGN(ImporterList); |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ | 62 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ |
| OLD | NEW |