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

Unified Diff: content/browser/indexed_db/idbbindingutilities_browsertest.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/indexed_db/idbbindingutilities_browsertest.cc
===================================================================
--- content/browser/indexed_db/idbbindingutilities_browsertest.cc (revision 120256)
+++ content/browser/indexed_db/idbbindingutilities_browsertest.cc (working copy)
@@ -7,7 +7,8 @@
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
-#include "content/browser/utility_process_host.h"
+#include "content/browser/utility_process_host_impl.h"
+#include "content/public/browser/utility_process_host_client.h"
#include "content/common/indexed_db/indexed_db_key.h"
#include "content/common/utility_messages.h"
#include "content/common/webkitplatformsupport_impl.h"
@@ -20,6 +21,8 @@
#include "webkit/glue/web_io_operators.h"
using content::BrowserThread;
+using content::UtilityProcessHost;
+using content::UtilityProcessHostClient;
using WebKit::WebSerializedScriptValue;
// Enables calling WebKit::shutdown no matter where a "return" happens.
@@ -104,7 +107,7 @@
ASSERT_EQ(WebKit::WebIDBKey::NullType, values[3].type());
}
-class IDBKeyPathHelper : public UtilityProcessHost::Client {
+class IDBKeyPathHelper : public UtilityProcessHostClient {
public:
IDBKeyPathHelper()
: expected_id_(0),
@@ -120,8 +123,8 @@
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
utility_process_host_ =
- (new UtilityProcessHost(this, BrowserThread::IO))->AsWeakPtr();
- utility_process_host_->set_use_linux_zygote(true);
+ (new UtilityProcessHostImpl(this, BrowserThread::IO))->AsWeakPtr();
+ utility_process_host_->EnableZygote();
utility_process_host_->StartBatchMode();
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
MessageLoop::QuitClosure());
@@ -187,7 +190,7 @@
ASSERT_TRUE(ret);
}
- // UtilityProcessHost::Client
+ // UtilityProcessHostClient
bool OnMessageReceived(const IPC::Message& message) {
bool msg_is_ok = true;
bool handled = true;
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_key_utility_client.cc ('k') | content/browser/plugin_loader_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698