| 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_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 6 #define CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/history/history_types.h" |
| 14 #include "chrome/browser/importer/importer_data_types.h" | 15 #include "chrome/browser/importer/importer_data_types.h" |
| 15 #include "chrome/browser/importer/profile_writer.h" | |
| 16 | 16 |
| 17 class GURL; |
| 18 struct IE7PasswordInfo; |
| 19 struct ImportedBookmarkEntry; |
| 20 class TemplateURL; |
| 17 // TODO: remove this, see friend declaration in ImporterBridge. | 21 // TODO: remove this, see friend declaration in ImporterBridge. |
| 18 class Toolbar5Importer; | 22 class Toolbar5Importer; |
| 19 | 23 |
| 24 namespace content { |
| 25 struct PasswordForm; |
| 26 } |
| 27 |
| 28 namespace history { |
| 29 struct ImportedFaviconUsage; |
| 30 } |
| 31 |
| 20 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { | 32 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { |
| 21 public: | 33 public: |
| 22 ImporterBridge(); | 34 ImporterBridge(); |
| 23 | 35 |
| 24 virtual void AddBookmarks( | 36 virtual void AddBookmarks( |
| 25 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, | 37 const std::vector<ImportedBookmarkEntry>& bookmarks, |
| 26 const string16& first_folder_name) = 0; | 38 const string16& first_folder_name) = 0; |
| 27 | 39 |
| 28 virtual void AddHomePage(const GURL& home_page) = 0; | 40 virtual void AddHomePage(const GURL& home_page) = 0; |
| 29 | 41 |
| 30 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
| 31 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0; | 43 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0; |
| 32 #endif | 44 #endif |
| 33 | 45 |
| 34 virtual void SetFavicons( | 46 virtual void SetFavicons( |
| 35 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; | 47 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // connection, but as an interim step we allow Toolbar5Import to break | 82 // connection, but as an interim step we allow Toolbar5Import to break |
| 71 // the abstraction here and assume import is in-process. | 83 // the abstraction here and assume import is in-process. |
| 72 friend class Toolbar5Importer; | 84 friend class Toolbar5Importer; |
| 73 | 85 |
| 74 virtual ~ImporterBridge(); | 86 virtual ~ImporterBridge(); |
| 75 | 87 |
| 76 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); | 88 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); |
| 77 }; | 89 }; |
| 78 | 90 |
| 79 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 91 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ |
| OLD | NEW |