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

Unified Diff: content/browser/mojo/mojo_shell_context.h

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark. Created 4 years, 9 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/mojo/mojo_shell_context.h
diff --git a/content/browser/mojo/mojo_shell_context.h b/content/browser/mojo/mojo_shell_context.h
index 3560364b071a846a77b0f077e19fd3603caa630d..fd8da4006f034c6d1cf21875a532e17b155dcb08 100644
--- a/content/browser/mojo/mojo_shell_context.h
+++ b/content/browser/mojo/mojo_shell_context.h
@@ -12,6 +12,7 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "base/single_thread_task_runner.h"
#include "content/common/content_export.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
#include "mojo/shell/shell.h"
@@ -33,7 +34,8 @@ class CONTENT_EXPORT MojoShellContext {
using StaticApplicationMap =
std::map<std::string, base::Callback<scoped_ptr<mojo::ShellClient>()>>;
- MojoShellContext();
+ MojoShellContext(scoped_refptr<base::SingleThreadTaskRunner> file_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread);
~MojoShellContext();
// Connects an application at |name| and gets a handle to its exposed
@@ -41,6 +43,7 @@ class CONTENT_EXPORT MojoShellContext {
// some Mojo application. May be called from any thread. |requestor_name| is
// given to the target application as the requestor's name upon connection.
static void ConnectToApplication(
+ const std::string& user_id,
const std::string& name,
const std::string& requestor_name,
mojo::shell::mojom::InterfaceProviderRequest request,
@@ -54,6 +57,7 @@ class CONTENT_EXPORT MojoShellContext {
friend class Proxy;
void ConnectToApplicationOnOwnThread(
+ const std::string& user_id,
const std::string& name,
const std::string& requestor_name,
mojo::shell::mojom::InterfaceProviderRequest request,

Powered by Google App Engine
This is Rietveld 408576698