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

Side by Side 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: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 void OnWorkerScriptLoadFailed(int worker_route_id); 219 void OnWorkerScriptLoadFailed(int worker_route_id);
220 void OnWorkerConnected(int message_port_id, int worker_route_id); 220 void OnWorkerConnected(int message_port_id, int worker_route_id);
221 void OnAllowDatabase(int worker_route_id, 221 void OnAllowDatabase(int worker_route_id,
222 const GURL& url, 222 const GURL& url,
223 const base::string16& name, 223 const base::string16& name,
224 const base::string16& display_name, 224 const base::string16& display_name,
225 unsigned long estimated_size, 225 unsigned long estimated_size,
226 bool* result); 226 bool* result);
227 void OnRequestFileSystemAccessSync(int worker_route_id, 227 void OnRequestFileSystemAccessSync(int worker_route_id,
228 const GURL& url, 228 const GURL& url,
229 bool* result); 229 IPC::Message* reply_msg);
230 void OnRequestFileSystemAccessSyncResponse(IPC::Message* reply_msg,
231 bool allowed);
230 void OnAllowIndexedDB(int worker_route_id, 232 void OnAllowIndexedDB(int worker_route_id,
231 const GURL& url, 233 const GURL& url,
232 const base::string16& name, 234 const base::string16& name,
233 bool* result); 235 bool* result);
234 void OnForceKillWorkerProcess(); 236 void OnForceKillWorkerProcess();
235 237
236 // Relays a message to the given endpoint. Takes care of parsing the message 238 // Relays a message to the given endpoint. Takes care of parsing the message
237 // if it contains a message port and sending it a valid route id. 239 // if it contains a message port and sending it a valid route id.
238 void RelayMessage(const IPC::Message& message, 240 void RelayMessage(const IPC::Message& message,
239 WorkerMessageFilter* incoming_filter, 241 WorkerMessageFilter* incoming_filter,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 public: 281 public:
280 WorkerProcessHostIterator() 282 WorkerProcessHostIterator()
281 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( 283 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>(
282 PROCESS_TYPE_WORKER) { 284 PROCESS_TYPE_WORKER) {
283 } 285 }
284 }; 286 };
285 287
286 } // namespace content 288 } // namespace content
287 289
288 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 290 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698