Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: chrome/browser/importer/importer.h

Issue 27242: Make importer.cc compile on Posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser.scons ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/ref_counted.h" 15 #include "base/ref_counted.h"
16 #include "chrome/browser/bookmarks/bookmark_model.h" 16 #include "chrome/browser/bookmarks/bookmark_model.h"
17 #include "chrome/browser/history/history_types.h" 17 #include "chrome/browser/history/history_types.h"
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #include "chrome/browser/password_manager/ie7_password.h" 19 #include "chrome/browser/password_manager/ie7_password.h"
20 #endif 20 #endif
21 #include "chrome/browser/profile.h" 21 #include "chrome/browser/profile.h"
22 #include "chrome/browser/search_engines/template_url.h" 22 #include "chrome/browser/search_engines/template_url.h"
23 #include "chrome/common/notification_observer.h" 23 #include "chrome/common/notification_observer.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "webkit/glue/password_form.h" 25 #include "webkit/glue/password_form.h"
26 26
27 // An enumeration of the type of browsers that we support to import 27 // An enumeration of the type of browsers that we support to import
28 // settings and data from them. 28 // settings and data from them.
29 enum ProfileType { 29 enum ProfileType {
30 MS_IE = 0, 30 #if defined(OS_WIN)
31 MS_IE,
32 #endif
31 FIREFOX2, 33 FIREFOX2,
32 FIREFOX3, 34 FIREFOX3,
33 // Identifies a 'bookmarks.html' file. 35 // Identifies a 'bookmarks.html' file.
34 BOOKMARKS_HTML 36 BOOKMARKS_HTML
35 }; 37 };
36 38
37 // An enumeration of the type of data we want to import. 39 // An enumeration of the type of data we want to import.
38 enum ImportItem { 40 enum ImportItem {
39 NONE = 0x0000, 41 NONE = 0x0000,
40 HISTORY = 0x0001, 42 HISTORY = 0x0001,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 private: 271 private:
270 // If we're not waiting on any model to finish loading, invokes the task_. 272 // If we're not waiting on any model to finish loading, invokes the task_.
271 void InvokeTaskIfDone(); 273 void InvokeTaskIfDone();
272 274
273 // Detects the installed browsers and their associated profiles, then 275 // Detects the installed browsers and their associated profiles, then
274 // stores their information in a list. It returns the list of description 276 // stores their information in a list. It returns the list of description
275 // of all profiles. 277 // of all profiles.
276 void DetectSourceProfiles(); 278 void DetectSourceProfiles();
277 279
278 // Helper methods for detecting available profiles. 280 // Helper methods for detecting available profiles.
281 #if defined(OS_WIN)
279 void DetectIEProfiles(); 282 void DetectIEProfiles();
283 #endif
280 void DetectFirefoxProfiles(); 284 void DetectFirefoxProfiles();
281 285
282 // The list of profiles with the default one first. 286 // The list of profiles with the default one first.
283 std::vector<ProfileInfo*> source_profiles_; 287 std::vector<ProfileInfo*> source_profiles_;
284 288
285 Observer* observer_; 289 Observer* observer_;
286 scoped_refptr<ProfileWriter> writer_; 290 scoped_refptr<ProfileWriter> writer_;
287 291
288 // The task is the process of importing settings from other browsers. 292 // The task is the process of importing settings from other browsers.
289 Task* task_; 293 Task* task_;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 void StartImportingWithUI(HWND parent_window, 425 void StartImportingWithUI(HWND parent_window,
422 int16 items, 426 int16 items,
423 ImporterHost* coordinator, 427 ImporterHost* coordinator,
424 const ProfileInfo& source_profile, 428 const ProfileInfo& source_profile,
425 Profile* target_profile, 429 Profile* target_profile,
426 ImportObserver* observer, 430 ImportObserver* observer,
427 bool first_run); 431 bool first_run);
428 #endif 432 #endif
429 433
430 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_ 434 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.scons ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698