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

Side by Side Diff: chrome/common/importer/importer_bridge.h

Issue 616763002: Importing certain bookmarks from firefox and HTML file as search engines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes. Created 6 years 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
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_COMMON_IMPORTER_IMPORTER_BRIDGE_H_ 5 #ifndef CHROME_COMMON_IMPORTER_IMPORTER_BRIDGE_H_
6 #define CHROME_COMMON_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
(...skipping 11 matching lines...) Expand all
22 22
23 namespace autofill { 23 namespace autofill {
24 struct PasswordForm; 24 struct PasswordForm;
25 } 25 }
26 26
27 namespace importer { 27 namespace importer {
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 struct ImporterIE7PasswordInfo; 29 struct ImporterIE7PasswordInfo;
30 #endif 30 #endif
31 struct ImporterURlRow; 31 struct ImporterURlRow;
32 struct URLKeywordInfo; 32 struct SearchEngineInfo;
Ilya Sherman 2015/01/07 22:51:26 It looks like your Windows compilation failures ar
Tapu Ghose 2015/01/09 11:22:53 Acknowledged.
33 } 33 }
34 34
35 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> { 35 class ImporterBridge : public base::RefCountedThreadSafe<ImporterBridge> {
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 base::string16& first_folder_name) = 0; 41 const base::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)
46 virtual void AddIE7PasswordInfo( 46 virtual void AddIE7PasswordInfo(
47 const importer::ImporterIE7PasswordInfo& password_info) = 0; 47 const importer::ImporterIE7PasswordInfo& password_info) = 0;
48 #endif 48 #endif
49 49
50 virtual void SetFavicons( 50 virtual void SetFavicons(
51 const std::vector<ImportedFaviconUsage>& favicons) = 0; 51 const std::vector<ImportedFaviconUsage>& favicons) = 0;
52 52
53 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, 53 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows,
54 importer::VisitSource visit_source) = 0; 54 importer::VisitSource visit_source) = 0;
55 55
56 virtual void SetKeywords( 56 virtual void SetKeywords(
57 const std::vector<importer::URLKeywordInfo>& url_keywords, 57 const std::vector<importer::SearchEngineInfo>& search_engines,
58 bool unique_on_host_and_path) = 0; 58 bool unique_on_host_and_path) = 0;
59 59
60 // The search_engine_data vector contains XML data retrieved from the Firefox 60 // The search_engine_data vector contains XML data retrieved from the Firefox
61 // profile and its sqlite db. 61 // profile and its sqlite db.
62 virtual void SetFirefoxSearchEnginesXMLData( 62 virtual void SetFirefoxSearchEnginesXMLData(
63 const std::vector<std::string>& search_engine_data) = 0; 63 const std::vector<std::string>& search_engine_data) = 0;
64 64
65 virtual void SetPasswordForm(const autofill::PasswordForm& form) = 0; 65 virtual void SetPasswordForm(const autofill::PasswordForm& form) = 0;
66 66
67 virtual void SetAutofillFormData( 67 virtual void SetAutofillFormData(
(...skipping 21 matching lines...) Expand all
89 89
90 protected: 90 protected:
91 friend class base::RefCountedThreadSafe<ImporterBridge>; 91 friend class base::RefCountedThreadSafe<ImporterBridge>;
92 92
93 virtual ~ImporterBridge(); 93 virtual ~ImporterBridge();
94 94
95 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); 95 DISALLOW_COPY_AND_ASSIGN(ImporterBridge);
96 }; 96 };
97 97
98 #endif // CHROME_COMMON_IMPORTER_IMPORTER_BRIDGE_H_ 98 #endif // CHROME_COMMON_IMPORTER_IMPORTER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698