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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/importer/importer_data_types.h" | 15 #include "chrome/browser/importer/importer_data_types.h" |
16 #include "chrome/browser/importer/profile_writer.h" | 16 #include "chrome/browser/importer/profile_writer.h" |
17 | 17 |
18 // TODO: remove this, see friend declaration in ImporterBridge. | 18 // TODO: remove this, see friend declaration in ImporterBridge. |
19 class Toolbar5Importer; | 19 class Toolbar5Importer; |
20 | 20 |
21 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { | 21 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { |
22 public: | 22 public: |
23 ImporterBridge(); | 23 ImporterBridge(); |
24 | 24 |
25 virtual void AddBookmarks( | 25 virtual void AddBookmarks( |
26 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, | 26 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, |
27 const string16& first_folder_name, | 27 const string16& first_folder_name) = 0; |
28 int options) = 0; | |
29 | 28 |
30 virtual void AddHomePage(const GURL& home_page) = 0; | 29 virtual void AddHomePage(const GURL& home_page) = 0; |
31 | 30 |
32 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
33 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0; | 32 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0; |
34 #endif | 33 #endif |
35 | 34 |
36 virtual void SetFavicons( | 35 virtual void SetFavicons( |
37 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; | 36 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; |
38 | 37 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // connection, but as an interim step we allow Toolbar5Import to break | 70 // connection, but as an interim step we allow Toolbar5Import to break |
72 // the abstraction here and assume import is in-process. | 71 // the abstraction here and assume import is in-process. |
73 friend class Toolbar5Importer; | 72 friend class Toolbar5Importer; |
74 | 73 |
75 virtual ~ImporterBridge(); | 74 virtual ~ImporterBridge(); |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); | 76 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); |
78 }; | 77 }; |
79 | 78 |
80 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 79 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ |
OLD | NEW |