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

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

Issue 14575004: Extract BookmarksFileImporter from Firefox2Importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 7 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
OLDNEW
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_IN_PROCESS_IMPORTER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_
6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ 6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/importer/importer_bridge.h" 15 #include "chrome/browser/importer/importer_bridge.h"
16 #include "chrome/browser/importer/profile_writer.h" 16 #include "chrome/browser/importer/profile_writer.h"
17 17
18 class GURL; 18 class GURL;
19 struct ImportedBookmarkEntry;
19 class ImporterHost; 20 class ImporterHost;
20 21
21 class InProcessImporterBridge : public ImporterBridge { 22 class InProcessImporterBridge : public ImporterBridge {
22 public: 23 public:
23 InProcessImporterBridge(ProfileWriter* writer, 24 InProcessImporterBridge(ProfileWriter* writer,
24 base::WeakPtr<ImporterHost> host); 25 base::WeakPtr<ImporterHost> host);
25 26
26 // Begin ImporterBridge implementation: 27 // Begin ImporterBridge implementation:
27 virtual void AddBookmarks( 28 virtual void AddBookmarks(
28 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 29 const std::vector<ImportedBookmarkEntry>& bookmarks,
29 const string16& first_folder_name) OVERRIDE; 30 const string16& first_folder_name) OVERRIDE;
30 31
31 virtual void AddHomePage(const GURL& home_page) OVERRIDE; 32 virtual void AddHomePage(const GURL& home_page) OVERRIDE;
32 33
33 #if defined(OS_WIN) 34 #if defined(OS_WIN)
34 virtual void AddIE7PasswordInfo( 35 virtual void AddIE7PasswordInfo(
35 const IE7PasswordInfo& password_info) OVERRIDE; 36 const IE7PasswordInfo& password_info) OVERRIDE;
36 #endif 37 #endif
37 38
38 virtual void SetFavicons( 39 virtual void SetFavicons(
(...skipping 19 matching lines...) Expand all
58 private: 59 private:
59 virtual ~InProcessImporterBridge(); 60 virtual ~InProcessImporterBridge();
60 61
61 ProfileWriter* const writer_; // weak 62 ProfileWriter* const writer_; // weak
62 const base::WeakPtr<ImporterHost> host_; 63 const base::WeakPtr<ImporterHost> host_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); 65 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge);
65 }; 66 };
66 67
67 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ 68 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698