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

Side by Side Diff: chrome/utility/importer/external_process_importer_bridge.h

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 7 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 | 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_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 5 #ifndef CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 // internal bridge gathers the data from the IPC host and writes it to the 40 // internal bridge gathers the data from the IPC host and writes it to the
41 // profile. 41 // profile.
42 class ExternalProcessImporterBridge : public ImporterBridge { 42 class ExternalProcessImporterBridge : public ImporterBridge {
43 public: 43 public:
44 ExternalProcessImporterBridge( 44 ExternalProcessImporterBridge(
45 const base::DictionaryValue& localized_strings, 45 const base::DictionaryValue& localized_strings,
46 IPC::Sender* sender, 46 IPC::Sender* sender,
47 base::TaskRunner* task_runner); 47 base::TaskRunner* task_runner);
48 48
49 // Begin ImporterBridge implementation: 49 // Begin ImporterBridge implementation:
50 virtual void AddBookmarks( 50 virtual void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks,
51 const std::vector<ImportedBookmarkEntry>& bookmarks, 51 const base::string16& first_folder_name) OVERRIDE;
52 const string16& first_folder_name) OVERRIDE;
53 52
54 virtual void AddHomePage(const GURL& home_page) OVERRIDE; 53 virtual void AddHomePage(const GURL& home_page) OVERRIDE;
55 54
56 #if defined(OS_WIN) 55 #if defined(OS_WIN)
57 virtual void AddIE7PasswordInfo( 56 virtual void AddIE7PasswordInfo(
58 const importer::ImporterIE7PasswordInfo& password_info) OVERRIDE; 57 const importer::ImporterIE7PasswordInfo& password_info) OVERRIDE;
59 #endif 58 #endif
60 59
61 virtual void SetFavicons( 60 virtual void SetFavicons(
62 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE; 61 const std::vector<ImportedFaviconUsage>& favicons) OVERRIDE;
63 62
64 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows, 63 virtual void SetHistoryItems(const std::vector<ImporterURLRow>& rows,
65 importer::VisitSource visit_source) OVERRIDE; 64 importer::VisitSource visit_source) OVERRIDE;
66 65
67 virtual void SetKeywords( 66 virtual void SetKeywords(
68 const std::vector<importer::URLKeywordInfo>& url_keywords, 67 const std::vector<importer::URLKeywordInfo>& url_keywords,
69 bool unique_on_host_and_path) OVERRIDE; 68 bool unique_on_host_and_path) OVERRIDE;
70 69
71 virtual void SetFirefoxSearchEnginesXMLData( 70 virtual void SetFirefoxSearchEnginesXMLData(
72 const std::vector<std::string>& seach_engine_data) OVERRIDE; 71 const std::vector<std::string>& seach_engine_data) OVERRIDE;
73 72
74 virtual void SetPasswordForm( 73 virtual void SetPasswordForm(
75 const autofill::PasswordForm& form) OVERRIDE; 74 const autofill::PasswordForm& form) OVERRIDE;
76 75
77 virtual void NotifyStarted() OVERRIDE; 76 virtual void NotifyStarted() OVERRIDE;
78 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; 77 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE;
79 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; 78 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE;
80 virtual void NotifyEnded() OVERRIDE; 79 virtual void NotifyEnded() OVERRIDE;
81 80
82 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 81 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
83 // End ImporterBridge implementation. 82 // End ImporterBridge implementation.
84 83
85 private: 84 private:
86 virtual ~ExternalProcessImporterBridge(); 85 virtual ~ExternalProcessImporterBridge();
87 86
88 void Send(IPC::Message* message); 87 void Send(IPC::Message* message);
89 void SendInternal(IPC::Message* message); 88 void SendInternal(IPC::Message* message);
90 89
91 // Holds strings needed by the external importer because the resource 90 // Holds strings needed by the external importer because the resource
92 // bundle isn't available to the external process. 91 // bundle isn't available to the external process.
93 scoped_ptr<base::DictionaryValue> localized_strings_; 92 scoped_ptr<base::DictionaryValue> localized_strings_;
94 93
95 IPC::Sender* sender_; 94 IPC::Sender* sender_;
96 scoped_refptr<base::TaskRunner> task_runner_; 95 scoped_refptr<base::TaskRunner> task_runner_;
97 96
98 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); 97 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge);
99 }; 98 };
100 99
101 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 100 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/utility/extensions/unpacker.cc ('k') | chrome/utility/importer/external_process_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698