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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/importer/firefox_importer_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/importer/importer_bridge.h" 14 #include "chrome/browser/importer/importer_bridge.h"
15 #include "chrome/browser/importer/profile_writer.h" 15 #include "chrome/browser/importer/profile_writer.h"
16 16
17 class DictionaryValue;
18 class GURL; 17 class GURL;
19 class ProfileImportThread; 18 class ProfileImportThread;
20 19
20 namespace base {
21 class DictionaryValue;
22 }
23
21 // When the importer is run in an external process, the bridge is effectively 24 // When the importer is run in an external process, the bridge is effectively
22 // split in half by the IPC infrastructure. The external bridge receives data 25 // split in half by the IPC infrastructure. The external bridge receives data
23 // and notifications from the importer, and sends it across IPC. The 26 // and notifications from the importer, and sends it across IPC. The
24 // internal bridge gathers the data from the IPC host and writes it to the 27 // internal bridge gathers the data from the IPC host and writes it to the
25 // profile. 28 // profile.
26 class ExternalProcessImporterBridge : public ImporterBridge { 29 class ExternalProcessImporterBridge : public ImporterBridge {
27 public: 30 public:
28 ExternalProcessImporterBridge(ProfileImportThread* profile_import_thread, 31 ExternalProcessImporterBridge(ProfileImportThread* profile_import_thread,
29 const DictionaryValue& localized_strings); 32 const base::DictionaryValue& localized_strings);
30 33
31 // Begin ImporterBridge implementation: 34 // Begin ImporterBridge implementation:
32 virtual void AddBookmarks( 35 virtual void AddBookmarks(
33 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, 36 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks,
34 const string16& first_folder_name) OVERRIDE; 37 const string16& first_folder_name) OVERRIDE;
35 38
36 virtual void AddHomePage(const GURL& home_page) OVERRIDE; 39 virtual void AddHomePage(const GURL& home_page) OVERRIDE;
37 40
38 #if defined(OS_WIN) 41 #if defined(OS_WIN)
39 virtual void AddIE7PasswordInfo( 42 virtual void AddIE7PasswordInfo(
(...skipping 21 matching lines...) Expand all
61 // End ImporterBridge implementation. 64 // End ImporterBridge implementation.
62 65
63 private: 66 private:
64 virtual ~ExternalProcessImporterBridge(); 67 virtual ~ExternalProcessImporterBridge();
65 68
66 // Call back to send data and messages across IPC. 69 // Call back to send data and messages across IPC.
67 ProfileImportThread* const profile_import_thread_; 70 ProfileImportThread* const profile_import_thread_;
68 71
69 // Holds strings needed by the external importer because the resource 72 // Holds strings needed by the external importer because the resource
70 // bundle isn't available to the external process. 73 // bundle isn't available to the external process.
71 scoped_ptr<DictionaryValue> localized_strings_; 74 scoped_ptr<base::DictionaryValue> localized_strings_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); 76 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 79 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/importer/firefox_importer_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698