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

Unified Diff: content/browser/worker_host/worker_process_host.h

Issue 338353007: Implementation of shared worker code path for WebView file system permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_sharedworker
Patch Set: Small changes are made. Created 6 years, 5 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/worker_host/worker_process_host.h
diff --git a/content/browser/worker_host/worker_process_host.h b/content/browser/worker_host/worker_process_host.h
index 086020fd3c537da25ad75c6e91ee1285105bafd9..48e5607b8fc47dc7e290fe716b8c770eede0e75f 100644
--- a/content/browser/worker_host/worker_process_host.h
+++ b/content/browser/worker_host/worker_process_host.h
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "content/browser/worker_host/worker_document_set.h"
#include "content/browser/worker_host/worker_storage_partition.h"
#include "content/common/content_export.h"
@@ -224,9 +225,11 @@ class WorkerProcessHost : public BrowserChildProcessHostDelegate,
const base::string16& display_name,
unsigned long estimated_size,
bool* result);
- void OnRequestFileSystemAccessSync(int worker_route_id,
- const GURL& url,
- bool* result);
+ void OnRequestFileSystemAccess(int worker_route_id,
+ const GURL& url,
+ IPC::Message* reply_msg);
+ void OnRequestFileSystemAccessResponse(scoped_ptr<IPC::Message> reply_msg,
+ bool allowed);
void OnAllowIndexedDB(int worker_route_id,
const GURL& url,
const base::string16& name,
@@ -271,6 +274,8 @@ class WorkerProcessHost : public BrowserChildProcessHostDelegate,
scoped_refptr<SocketStreamDispatcherHost> socket_stream_dispatcher_host_;
+ base::WeakPtrFactory<WorkerProcessHost> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost);
};
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698