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

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

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // When the importer is run in an external process, the bridge is effectively 25 // When the importer is run in an external process, the bridge is effectively
26 // split in half by the IPC infrastructure. The external bridge receives data 26 // split in half by the IPC infrastructure. The external bridge receives data
27 // and notifications from the importer, and sends it across IPC. The 27 // and notifications from the importer, and sends it across IPC. The
28 // internal bridge gathers the data from the IPC host and writes it to the 28 // internal bridge gathers the data from the IPC host and writes it to the
29 // profile. 29 // profile.
30 class ExternalProcessImporterBridge : public ImporterBridge { 30 class ExternalProcessImporterBridge : public ImporterBridge {
31 public: 31 public:
32 ExternalProcessImporterBridge( 32 ExternalProcessImporterBridge(
33 const base::DictionaryValue& localized_strings, 33 const base::DictionaryValue& localized_strings,
34 IPC::Message::Sender* sender, 34 IPC::Sender* sender,
35 base::TaskRunner* task_runner); 35 base::TaskRunner* task_runner);
36 36
37 // Begin ImporterBridge implementation: 37 // Begin ImporterBridge implementation:
38 virtual void AddBookmarks( 38 virtual void AddBookmarks(
39 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 39 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks,
40 const string16& first_folder_name) OVERRIDE; 40 const string16& first_folder_name) OVERRIDE;
41 41
42 virtual void AddHomePage(const GURL& home_page) OVERRIDE; 42 virtual void AddHomePage(const GURL& home_page) OVERRIDE;
43 43
44 #if defined(OS_WIN) 44 #if defined(OS_WIN)
(...skipping 24 matching lines...) Expand all
69 private: 69 private:
70 virtual ~ExternalProcessImporterBridge(); 70 virtual ~ExternalProcessImporterBridge();
71 71
72 void Send(IPC::Message* message); 72 void Send(IPC::Message* message);
73 void SendInternal(IPC::Message* message); 73 void SendInternal(IPC::Message* message);
74 74
75 // Holds strings needed by the external importer because the resource 75 // Holds strings needed by the external importer because the resource
76 // bundle isn't available to the external process. 76 // bundle isn't available to the external process.
77 scoped_ptr<base::DictionaryValue> localized_strings_; 77 scoped_ptr<base::DictionaryValue> localized_strings_;
78 78
79 IPC::Message::Sender* sender_; 79 IPC::Sender* sender_;
80 scoped_refptr<base::TaskRunner> task_runner_; 80 scoped_refptr<base::TaskRunner> task_runner_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); 82 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge);
83 }; 83 };
84 84
85 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 85 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698