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

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

Issue 18064002: The browser importer code which runs in the utility process should not depend on chrome\browser dat… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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_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 <string>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
13 #include "build/build_config.h" 15 #include "build/build_config.h"
14 #include "chrome/browser/history/history_types.h" 16 #include "chrome/browser/history/history_types.h"
15 #include "chrome/browser/importer/importer_data_types.h" 17 #include "chrome/browser/importer/importer_data_types.h"
16 18
17 class GURL; 19 class GURL;
18 struct IE7PasswordInfo; 20 struct IE7PasswordInfo;
19 struct ImportedBookmarkEntry; 21 struct ImportedBookmarkEntry;
20 struct ImportedFaviconUsage; 22 struct ImportedFaviconUsage;
(...skipping 18 matching lines...) Expand all
39 #if defined(OS_WIN) 41 #if defined(OS_WIN)
40 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0; 42 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& password_info) = 0;
41 #endif 43 #endif
42 44
43 virtual void SetFavicons( 45 virtual void SetFavicons(
44 const std::vector<ImportedFaviconUsage>& favicons) = 0; 46 const std::vector<ImportedFaviconUsage>& favicons) = 0;
45 47
46 virtual void SetHistoryItems(const history::URLRows& rows, 48 virtual void SetHistoryItems(const history::URLRows& rows,
47 history::VisitSource visit_source) = 0; 49 history::VisitSource visit_source) = 0;
48 50
49 // WARNING: This function takes ownership of (and deletes) the pointers in 51 virtual void SetKeywords(
50 // |template_urls|! 52 const std::vector<importer::URLKeywordInfo>& url_keywords,
51 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, 53 bool unique_on_host_and_path) = 0;
52 bool unique_on_host_and_path) = 0; 54
55 virtual void SetFirefoxSearchEnginesXMLData(
scottmg 2013/06/27 15:47:21 nit; any way this name could be more descriptive?
ananta 2013/06/27 15:56:49 Done.
56 const std::vector<std::string>& search_engine_data) = 0;
53 57
54 virtual void SetPasswordForm(const content::PasswordForm& form) = 0; 58 virtual void SetPasswordForm(const content::PasswordForm& form) = 0;
55 59
56 // Notifies the coordinator that the import operation has begun. 60 // Notifies the coordinator that the import operation has begun.
57 virtual void NotifyStarted() = 0; 61 virtual void NotifyStarted() = 0;
58 62
59 // Notifies the coordinator that the collection of data for the specified 63 // Notifies the coordinator that the collection of data for the specified
60 // item has begun. 64 // item has begun.
61 virtual void NotifyItemStarted(importer::ImportItem item) = 0; 65 virtual void NotifyItemStarted(importer::ImportItem item) = 0;
62 66
(...skipping 16 matching lines...) Expand all
79 // connection, but as an interim step we allow Toolbar5Import to break 83 // connection, but as an interim step we allow Toolbar5Import to break
80 // the abstraction here and assume import is in-process. 84 // the abstraction here and assume import is in-process.
81 friend class Toolbar5Importer; 85 friend class Toolbar5Importer;
82 86
83 virtual ~ImporterBridge(); 87 virtual ~ImporterBridge();
84 88
85 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); 89 DISALLOW_COPY_AND_ASSIGN(ImporterBridge);
86 }; 90 };
87 91
88 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ 92 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698