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

Side by Side Diff: content/worker/worker_permission_client_proxy.h

Issue 46583005: Send Allow{Database,FileSystem,IndexedDB} sync IPCs directly from worker thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_WORKER_WORKER_PERMISSION_CLIENT_PROXY_H_
6 #define CONTENT_WORKER_WORKER_PERMISSION_CLIENT_PROXY_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/web/WebWorkerPermissionClientProxy.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 class ThreadSafeSender;
16
17 // This proxy is created on the main renderer thread then passed onto
18 // the blink's worker thread.
19 class WorkerPermissionClientProxy
20 : public WebKit::WebWorkerPermissionClientProxy {
21 public:
22 WorkerPermissionClientProxy(const GURL& origin_url,
23 int routing_id,
24 content::ThreadSafeSender* thread_safe_sender);
jam 2013/10/29 17:19:57 nit: here and below and in the cc file, no content
kinuko 2013/10/30 00:24:56 Done.
25 virtual ~WorkerPermissionClientProxy();
26
27 // WebWorkerPermissionClientProxy overrides.
28 virtual bool allowDatabase(const WebKit::WebString& name,
29 const WebKit::WebString& display_name,
30 unsigned long estimated_size);
31 virtual bool allowFileSystem();
32 virtual bool allowIndexedDB(const WebKit::WebString& name);
33
34 private:
35 const GURL origin_url_;
36 const int routing_id_;
37 scoped_refptr<content::ThreadSafeSender> thread_safe_sender_;
38
39 DISALLOW_COPY_AND_ASSIGN(WorkerPermissionClientProxy);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_WORKER_WORKER_PERMISSION_CLIENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698