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

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

Issue 6693021: fav icon -> favicon. Pass 5: fav_icon -> favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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
(...skipping 16 matching lines...) Expand all
27 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 27 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks,
28 const std::wstring& first_folder_name, 28 const std::wstring& first_folder_name,
29 int options) = 0; 29 int options) = 0;
30 virtual void AddHomePage(const GURL &home_page) = 0; 30 virtual void AddHomePage(const GURL &home_page) = 0;
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info) = 0; 33 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info) = 0;
34 #endif 34 #endif
35 35
36 virtual void SetFavicons( 36 virtual void SetFavicons(
37 const std::vector<history::ImportedFavIconUsage>& fav_icons) = 0; 37 const std::vector<history::ImportedFavIconUsage>& favicons) = 0;
38 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows, 38 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows,
39 history::VisitSource visit_source) = 0; 39 history::VisitSource visit_source) = 0;
40 virtual void SetKeywords(const std::vector<TemplateURL*> &template_urls, 40 virtual void SetKeywords(const std::vector<TemplateURL*> &template_urls,
41 int default_keyword_index, 41 int default_keyword_index,
42 bool unique_on_host_and_path) = 0; 42 bool unique_on_host_and_path) = 0;
43 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form) = 0; 43 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form) = 0;
44 44
45 // Notifies the coordinator that the import operation has begun. 45 // Notifies the coordinator that the import operation has begun.
46 virtual void NotifyStarted() = 0; 46 virtual void NotifyStarted() = 0;
47 47
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 85 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks,
86 const std::wstring& first_folder_name, 86 const std::wstring& first_folder_name,
87 int options); 87 int options);
88 virtual void AddHomePage(const GURL &home_page); 88 virtual void AddHomePage(const GURL &home_page);
89 89
90 #if defined(OS_WIN) 90 #if defined(OS_WIN)
91 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info); 91 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info);
92 #endif 92 #endif
93 93
94 virtual void SetFavicons( 94 virtual void SetFavicons(
95 const std::vector<history::ImportedFavIconUsage>& fav_icons); 95 const std::vector<history::ImportedFavIconUsage>& favicons);
96 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows, 96 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows,
97 history::VisitSource visit_source); 97 history::VisitSource visit_source);
98 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, 98 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls,
99 int default_keyword_index, 99 int default_keyword_index,
100 bool unique_on_host_and_path); 100 bool unique_on_host_and_path);
101 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form); 101 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form);
102 102
103 virtual void NotifyItemStarted(importer::ImportItem item); 103 virtual void NotifyItemStarted(importer::ImportItem item);
104 virtual void NotifyItemEnded(importer::ImportItem item); 104 virtual void NotifyItemEnded(importer::ImportItem item);
105 virtual void NotifyStarted(); 105 virtual void NotifyStarted();
(...skipping 25 matching lines...) Expand all
131 virtual void AddBookmarkEntries( 131 virtual void AddBookmarkEntries(
132 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 132 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks,
133 const std::wstring& first_folder_name, int options); 133 const std::wstring& first_folder_name, int options);
134 virtual void AddHomePage(const GURL &home_page); 134 virtual void AddHomePage(const GURL &home_page);
135 135
136 #if defined(OS_WIN) 136 #if defined(OS_WIN)
137 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info); 137 virtual void AddIE7PasswordInfo(const IE7PasswordInfo password_info);
138 #endif 138 #endif
139 139
140 virtual void SetFavicons( 140 virtual void SetFavicons(
141 const std::vector<history::ImportedFavIconUsage>& fav_icons); 141 const std::vector<history::ImportedFavIconUsage>& favicons);
142 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows, 142 virtual void SetHistoryItems(const std::vector<history::URLRow> &rows,
143 history::VisitSource visit_source); 143 history::VisitSource visit_source);
144 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls, 144 virtual void SetKeywords(const std::vector<TemplateURL*>& template_urls,
145 int default_keyword_index, 145 int default_keyword_index,
146 bool unique_on_host_and_path); 146 bool unique_on_host_and_path);
147 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form); 147 virtual void SetPasswordForm(const webkit_glue::PasswordForm& form);
148 148
149 virtual void NotifyStarted(); 149 virtual void NotifyStarted();
150 virtual void NotifyItemStarted(importer::ImportItem item); 150 virtual void NotifyItemStarted(importer::ImportItem item);
151 virtual void NotifyItemEnded(importer::ImportItem item); 151 virtual void NotifyItemEnded(importer::ImportItem item);
152 virtual void NotifyEnded(); 152 virtual void NotifyEnded();
153 153
154 virtual std::wstring GetLocalizedString(int message_id); 154 virtual std::wstring GetLocalizedString(int message_id);
155 155
156 private: 156 private:
157 ~ExternalProcessImporterBridge(); 157 ~ExternalProcessImporterBridge();
158 158
159 // Call back to send data and messages across IPC. 159 // Call back to send data and messages across IPC.
160 ProfileImportThread* const profile_import_thread_; 160 ProfileImportThread* const profile_import_thread_;
161 161
162 // Holds strings needed by the external importer because the resource 162 // Holds strings needed by the external importer because the resource
163 // bundle isn't available to the external process. 163 // bundle isn't available to the external process.
164 scoped_ptr<DictionaryValue> localized_strings_; 164 scoped_ptr<DictionaryValue> localized_strings_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); 166 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge);
167 }; 167 };
168 168
169 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_ 169 #endif // CHROME_BROWSER_IMPORTER_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/external_process_importer_client.cc ('k') | chrome/browser/importer/importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698