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

Unified Diff: content/browser/in_process_webkit/indexed_db_key_utility_client.cc

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
Index: content/browser/in_process_webkit/indexed_db_key_utility_client.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_key_utility_client.cc (revision 120256)
+++ content/browser/in_process_webkit/indexed_db_key_utility_client.cc (working copy)
@@ -7,13 +7,15 @@
#include "base/bind.h"
#include "base/lazy_instance.h"
#include "base/synchronization/waitable_event.h"
-#include "content/browser/utility_process_host.h"
+#include "content/browser/utility_process_host_impl.h"
#include "content/common/indexed_db/indexed_db_key.h"
#include "content/common/indexed_db/indexed_db_messages.h"
#include "content/common/utility_messages.h"
+#include "content/public/browser/utility_process_host_client.h"
#include "content/public/common/serialized_script_value.h"
using content::BrowserThread;
+using content::UtilityProcessHostClient;
// This class is used to obtain IndexedDBKeys from SerializedScriptValues
// given an IDBKeyPath. It uses UtilityProcess to do this inside a sandbox
@@ -45,11 +47,11 @@
const string16& key_path);
private:
- class Client : public UtilityProcessHost::Client {
+ class Client : public UtilityProcessHostClient {
public:
explicit Client(KeyUtilityClientImpl* parent);
- // UtilityProcessHost::Client
+ // UtilityProcessHostClient
virtual void OnProcessCrashed(int exit_code);
virtual bool OnMessageReceived(const IPC::Message& message);
@@ -100,7 +102,7 @@
content::SerializedScriptValue value_after_injection_;
// Used in the IO thread.
- base::WeakPtr<UtilityProcessHost> utility_process_host_;
+ base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
scoped_refptr<Client> client_;
DISALLOW_COPY_AND_ASSIGN(KeyUtilityClientImpl);
@@ -275,9 +277,9 @@
DCHECK(state_ == STATE_UNINITIALIZED);
client_ = new KeyUtilityClientImpl::Client(this);
- utility_process_host_ = (new UtilityProcessHost(
+ utility_process_host_ = (new UtilityProcessHostImpl(
client_.get(), BrowserThread::IO))->AsWeakPtr();
- utility_process_host_->set_use_linux_zygote(true);
+ utility_process_host_->EnableZygote();
utility_process_host_->StartBatchMode();
state_ = STATE_INITIALIZED;
waitable_event_.Signal();
« no previous file with comments | « chrome/browser/web_resource/web_resource_service.cc ('k') | content/browser/indexed_db/idbbindingutilities_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698