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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; | 35 const std::vector<history::ImportedFaviconUsage>& favicons) = 0; |
36 | 36 |
37 virtual void SetHistoryItems(const history::URLRows& rows, | 37 virtual void SetHistoryItems(const history::URLRows& rows, |
38 history::VisitSource visit_source) = 0; | 38 history::VisitSource visit_source) = 0; |
39 | 39 |
40 // WARNING: This function takes ownership of (and deletes) the pointers in | 40 // WARNING: This function takes ownership of (and deletes) the pointers in |
41 // |template_urls|! | 41 // |template_urls|! |
42 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, | 42 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, |
43 bool unique_on_host_and_path) = 0; | 43 bool unique_on_host_and_path) = 0; |
44 | 44 |
45 virtual void SetPasswordForm(const webkit::forms::PasswordForm& form) = 0; | 45 virtual void SetPasswordForm(const content::PasswordForm& form) = 0; |
46 | 46 |
47 // Notifies the coordinator that the import operation has begun. | 47 // Notifies the coordinator that the import operation has begun. |
48 virtual void NotifyStarted() = 0; | 48 virtual void NotifyStarted() = 0; |
49 | 49 |
50 // Notifies the coordinator that the collection of data for the specified | 50 // Notifies the coordinator that the collection of data for the specified |
51 // item has begun. | 51 // item has begun. |
52 virtual void NotifyItemStarted(importer::ImportItem item) = 0; | 52 virtual void NotifyItemStarted(importer::ImportItem item) = 0; |
53 | 53 |
54 // Notifies the coordinator that the collection of data for the specified | 54 // Notifies the coordinator that the collection of data for the specified |
55 // item has completed. | 55 // item has completed. |
(...skipping 14 matching lines...) Expand all Loading... |
70 // connection, but as an interim step we allow Toolbar5Import to break | 70 // connection, but as an interim step we allow Toolbar5Import to break |
71 // the abstraction here and assume import is in-process. | 71 // the abstraction here and assume import is in-process. |
72 friend class Toolbar5Importer; | 72 friend class Toolbar5Importer; |
73 | 73 |
74 virtual ~ImporterBridge(); | 74 virtual ~ImporterBridge(); |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); | 76 DISALLOW_COPY_AND_ASSIGN(ImporterBridge); |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ | 79 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ |
OLD | NEW |