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

Unified Diff: chrome/browser/importer/external_process_importer_client.h

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/image_decoder.cc ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/external_process_importer_client.h
===================================================================
--- chrome/browser/importer/external_process_importer_client.h (revision 120256)
+++ chrome/browser/importer/external_process_importer_client.h (working copy)
@@ -11,15 +11,19 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
#include "base/string16.h"
#include "chrome/browser/importer/importer_data_types.h"
#include "chrome/browser/importer/profile_writer.h"
-#include "content/browser/utility_process_host.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/utility_process_host_client.h"
class ExternalProcessImporterHost;
class InProcessImporterBridge;
+
+namespace content {
class UtilityProcessHost;
+}
namespace history {
class URLRow;
@@ -29,7 +33,7 @@
// This class is the client for the out of process profile importing. It
// collects notifications from this process host and feeds data back to the
// importer host, who actually does the writing.
-class ExternalProcessImporterClient : public UtilityProcessHost::Client {
+class ExternalProcessImporterClient : public content::UtilityProcessHostClient {
public:
ExternalProcessImporterClient(ExternalProcessImporterHost* importer_host,
const importer::SourceProfile& source_profile,
@@ -55,7 +59,7 @@
// Called by the ExternalProcessImporterHost on import cancel.
virtual void Cancel();
- // UtilityProcessHost::Client implementation:
+ // UtilityProcessHostClient implementation:
virtual void OnProcessCrashed(int exit_code) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -111,7 +115,7 @@
// Handles sending messages to the external process. Deletes itself when
// the external process dies (see
// BrowserChildProcessHost::OnChildDisconnected).
- base::WeakPtr<UtilityProcessHost> utility_process_host_;
+ base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
// Data to be passed from the importer host to the external importer.
const importer::SourceProfile& source_profile_;
« no previous file with comments | « chrome/browser/image_decoder.cc ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698