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

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: 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/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..a956c99559d52ef168ec44bf5191826abe43ea0a 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 AllowFileSystem(const GURL& url, scoped_ptr<IPC::Message> reply_msg);
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 AllowFileSystemResponse(scoped_ptr<IPC::Message> reply_msg,
+ 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