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_COMMON_IMPORTER_IMPORTER_BRIDGE_H_ |
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 6 #define CHROME_COMMON_IMPORTER_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/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/history/history_types.h" | |
16 #include "chrome/common/importer/importer_data_types.h" | 15 #include "chrome/common/importer/importer_data_types.h" |
17 #include "chrome/common/importer/importer_url_row.h" | 16 #include "chrome/common/importer/importer_url_row.h" |
17 #include "chrome/common/importer/importer_visit_source.h" | |
gab
2013/07/10 13:40:44
nit: Remove this include along with the file.
scottmg
2013/07/15 16:06:01
Done.
| |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 struct ImportedBookmarkEntry; | 20 struct ImportedBookmarkEntry; |
21 struct ImportedFaviconUsage; | 21 struct ImportedFaviconUsage; |
22 | 22 |
23 namespace importer { | 23 namespace importer { |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 struct ImporterIE7PasswordInfo; | 25 struct ImporterIE7PasswordInfo; |
26 #endif | 26 #endif |
27 struct ImporterURlRow; | 27 struct ImporterURlRow; |
28 struct URLKeywordInfo; | 28 struct URLKeywordInfo; |
29 } | 29 } |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 struct PasswordForm; | 32 struct PasswordForm; |
33 } | 33 } |
34 | 34 |
35 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { | 35 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { |
gab
2013/07/10 13:40:44
I think this should be a pure-virtual interface in
| |
36 public: | 36 public: |
37 ImporterBridge(); | 37 ImporterBridge(); |
38 | 38 |
39 virtual void AddBookmarks( | 39 virtual void AddBookmarks( |
40 const std::vector<ImportedBookmarkEntry>& bookmarks, | 40 const std::vector<ImportedBookmarkEntry>& bookmarks, |
41 const string16& first_folder_name) = 0; | 41 const string16& first_folder_name) = 0; |
42 | 42 |
43 virtual void AddHomePage(const GURL& home_page) = 0; | 43 virtual void AddHomePage(const GURL& home_page) = 0; |
44 | 44 |
45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 virtual string16 GetLocalizedString(int message_id) = 0; | 85 virtual string16 GetLocalizedString(int message_id) = 0; |
86 | 86 |
87 protected: | 87 protected: |
88 friend class base::RefCountedThreadSafe<ImporterBridge>; | 88 friend class base::RefCountedThreadSafe<ImporterBridge>; |
89 | 89 |
90 virtual ~ImporterBridge(); | 90 virtual ~ImporterBridge(); |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); | 92 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); |
93 }; | 93 }; |
94 | 94 |
95 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 95 #endif // CHROME_COMMON_IMPORTER_IMPORTER_BRIDGE_H_ |
OLD | NEW |