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

Side by Side Diff: chrome/browser/profile_import_process_host.h

Issue 5874002: Create a ResourceMessageFilter to filter resource related IPCs. This gets ri... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 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_PROFILE_IMPORT_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_
6 #define CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/ref_counted.h" 13 #include "base/ref_counted.h"
14 #include "chrome/browser/browser_child_process_host.h" 14 #include "chrome/browser/browser_child_process_host.h"
15 #include "chrome/browser/browser_thread.h" 15 #include "chrome/browser/browser_thread.h"
16 #include "chrome/browser/history/history_types.h" 16 #include "chrome/browser/history/history_types.h"
17 #include "chrome/browser/importer/importer_data_types.h" 17 #include "chrome/browser/importer/importer_data_types.h"
18 #include "chrome/browser/importer/profile_writer.h" 18 #include "chrome/browser/importer/profile_writer.h"
19 #include "ipc/ipc_channel.h"
20 19
21 namespace webkit_glue { 20 namespace webkit_glue {
22 struct PasswordForm; 21 struct PasswordForm;
23 } 22 }
24 23
25 // Browser-side host to a profile import process. This class lives only on 24 // Browser-side host to a profile import process. This class lives only on
26 // the IO thread. It passes messages back to the |thread_id_| thread through 25 // the IO thread. It passes messages back to the |thread_id_| thread through
27 // a client object. 26 // a client object.
28 class ProfileImportProcessHost : public BrowserChildProcessHost { 27 class ProfileImportProcessHost : public BrowserChildProcessHost {
29 public: 28 public:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Launch the new process. 120 // Launch the new process.
122 bool StartProcess(); 121 bool StartProcess();
123 122
124 // Called by the external importer process to send messages back to the 123 // Called by the external importer process to send messages back to the
125 // ImportProcessClient. 124 // ImportProcessClient.
126 virtual void OnMessageReceived(const IPC::Message& message); 125 virtual void OnMessageReceived(const IPC::Message& message);
127 126
128 // Overridden from BrowserChildProcessHost: 127 // Overridden from BrowserChildProcessHost:
129 virtual void OnProcessCrashed(int exit_code); 128 virtual void OnProcessCrashed(int exit_code);
130 virtual bool CanShutdown(); 129 virtual bool CanShutdown();
131 virtual URLRequestContext* GetRequestContext(
132 uint32 request_id,
133 const ViewHostMsg_Resource_Request& request_data);
134 130
135 // Receives messages to be passed back to the importer host. 131 // Receives messages to be passed back to the importer host.
136 scoped_refptr<ImportProcessClient> import_process_client_; 132 scoped_refptr<ImportProcessClient> import_process_client_;
137 133
138 // The thread where the import_process_client_ lives. 134 // The thread where the import_process_client_ lives.
139 BrowserThread::ID thread_id_; 135 BrowserThread::ID thread_id_;
140 136
141 DISALLOW_COPY_AND_ASSIGN(ProfileImportProcessHost); 137 DISALLOW_COPY_AND_ASSIGN(ProfileImportProcessHost);
142 }; 138 };
143 139
144 #endif // CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_ 140 #endif // CHROME_BROWSER_PROFILE_IMPORT_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698