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_HOST_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ |
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // complete. | 134 // complete. |
135 virtual void InvokeTaskIfDone(); | 135 virtual void InvokeTaskIfDone(); |
136 | 136 |
137 // BaseBookmarkModelObserver: | 137 // BaseBookmarkModelObserver: |
138 virtual void Loaded(BookmarkModel* model) OVERRIDE; | 138 virtual void Loaded(BookmarkModel* model) OVERRIDE; |
139 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; | 139 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) OVERRIDE; |
140 virtual void BookmarkModelChanged() OVERRIDE; | 140 virtual void BookmarkModelChanged() OVERRIDE; |
141 | 141 |
142 // NotificationObserver: | 142 // NotificationObserver: |
143 // Called when TemplateURLService has been loaded. | 143 // Called when TemplateURLService has been loaded. |
144 virtual void Observe(NotificationType type, | 144 virtual void Observe(int type, |
145 const NotificationSource& source, | 145 const NotificationSource& source, |
146 const NotificationDetails& details) OVERRIDE; | 146 const NotificationDetails& details) OVERRIDE; |
147 | 147 |
148 // True if UI is not to be shown. | 148 // True if UI is not to be shown. |
149 bool headless_; | 149 bool headless_; |
150 | 150 |
151 // Parent window that we pass to the import lock dialog (i.e, the Firefox | 151 // Parent window that we pass to the import lock dialog (i.e, the Firefox |
152 // warning dialog). | 152 // warning dialog). |
153 gfx::NativeWindow parent_window_; | 153 gfx::NativeWindow parent_window_; |
154 | 154 |
155 // The observer that we need to notify about changes in the import process. | 155 // The observer that we need to notify about changes in the import process. |
156 importer::ImporterProgressObserver* observer_; | 156 importer::ImporterProgressObserver* observer_; |
157 | 157 |
158 // Firefox profile lock. | 158 // Firefox profile lock. |
159 scoped_ptr<FirefoxProfileLock> firefox_lock_; | 159 scoped_ptr<FirefoxProfileLock> firefox_lock_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(ImporterHost); | 161 DISALLOW_COPY_AND_ASSIGN(ImporterHost); |
162 }; | 162 }; |
163 | 163 |
164 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ | 164 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_ |
OLD | NEW |