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

Unified Diff: content/browser/shared_worker/shared_worker_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: Use scoped_refptr. Created 6 years, 6 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/shared_worker/shared_worker_host.h
diff --git a/content/browser/shared_worker/shared_worker_host.h b/content/browser/shared_worker/shared_worker_host.h
index 53cc218669c7b387986bd33c8ce16eca12d5865c..76bd6887972304ff40fa1b9b1ea90bc9691e1b76 100644
--- a/content/browser/shared_worker/shared_worker_host.h
+++ b/content/browser/shared_worker/shared_worker_host.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "content/browser/shared_worker/shared_worker_message_filter.h"
@@ -64,7 +65,7 @@ class SharedWorkerHost {
const base::string16& display_name,
unsigned long estimated_size,
bool* result);
- void AllowFileSystem(const GURL& url, bool* result);
+ void RequestFileSystemAccess(const GURL& url, IPC::Message* reply_msg);
jabdelmalek 2014/06/24 21:23:31 ditto
Xi Han 2014/06/25 14:50:26 Done.
void AllowIndexedDB(const GURL& url,
const base::string16& name,
bool* result);
@@ -118,9 +119,11 @@ class SharedWorkerHost {
void SetMessagePortID(SharedWorkerMessageFilter* filter,
int route_id,
int message_port_id);
-
+ void RequestFileSystemAccessResponse(scoped_ptr<IPC::Message> reply_msg,
jabdelmalek 2014/06/24 21:23:31 AllowFileSystemResponse
Xi Han 2014/06/25 14:50:26 Done.
+ bool allowed);
scoped_ptr<SharedWorkerInstance> instance_;
scoped_refptr<WorkerDocumentSet> worker_document_set_;
+ base::WeakPtrFactory<SharedWorkerHost> weak_factory_;
FilterList filters_;
SharedWorkerMessageFilter* container_render_filter_;
int worker_process_id_;

Powered by Google App Engine
This is Rietveld 408576698