| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // The list of profiles with the default one first. | 69 // The list of profiles with the default one first. |
| 70 ScopedVector<importer::SourceProfile> source_profiles_; | 70 ScopedVector<importer::SourceProfile> source_profiles_; |
| 71 | 71 |
| 72 // Needed for Google Toolbar Import to connect to Toolbar server. | 72 // Needed for Google Toolbar Import to connect to Toolbar server. |
| 73 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 73 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 74 | 74 |
| 75 // The ID of the thread DetectSourceProfiles() is called on. Only valid after | 75 // The ID of the thread DetectSourceProfiles() is called on. Only valid after |
| 76 // DetectSourceProfiles() is called and until SourceProfilesLoaded() has | 76 // DetectSourceProfiles() is called and until SourceProfilesLoaded() has |
| 77 // returned. | 77 // returned. |
| 78 BrowserThread::ID source_thread_id_; | 78 content::BrowserThread::ID source_thread_id_; |
| 79 | 79 |
| 80 // Weak reference. Only valid after DetectSourceProfiles() is called and until | 80 // Weak reference. Only valid after DetectSourceProfiles() is called and until |
| 81 // SourceProfilesLoaded() has returned. | 81 // SourceProfilesLoaded() has returned. |
| 82 importer::ImporterListObserver* observer_; | 82 importer::ImporterListObserver* observer_; |
| 83 | 83 |
| 84 // True if |observer_| is set during the lifetime of source profile detection. | 84 // True if |observer_| is set during the lifetime of source profile detection. |
| 85 // This hack is necessary in order to not use |observer_| != NULL as a method | 85 // This hack is necessary in order to not use |observer_| != NULL as a method |
| 86 // of determining whether this object is being observed or not. | 86 // of determining whether this object is being observed or not. |
| 87 // TODO(jhawkins): Remove once DetectSourceProfilesHack() is removed. | 87 // TODO(jhawkins): Remove once DetectSourceProfilesHack() is removed. |
| 88 bool is_observed_; | 88 bool is_observed_; |
| 89 | 89 |
| 90 // True if source profiles are loaded. | 90 // True if source profiles are loaded. |
| 91 bool source_profiles_loaded_; | 91 bool source_profiles_loaded_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(ImporterList); | 93 DISALLOW_COPY_AND_ASSIGN(ImporterList); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ | 96 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_LIST_H_ |
| OLD | NEW |