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

Side by Side Diff: chrome/renderer/in_renderer_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 CHROME_RENDERER_IN_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_
6 #define CHROME_RENDERER_IN_RENDERER_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 IPC {
14 class SyncMessageFilter;
15 }
16
17 namespace WebKit {
18 class WebFrame;
19 }
20
21 // This proxy is created on the main renderer thread then passed onto
22 // the blink's worker thread.
23 class InRendererWorkerPermissionClientProxy
jam 2013/10/29 17:19:57 nit: InRenderer in the class name is redundant sin
michaeln 2013/10/29 21:37:00 I think this is used specifically for dedicated wo
kinuko 2013/10/30 00:24:56 Looks like for dedicated worker stuff we don't alw
24 : public WebKit::WebWorkerPermissionClientProxy {
25 public:
26 InRendererWorkerPermissionClientProxy(WebKit::WebFrame* frame,
27 int routing_id);
28 virtual ~InRendererWorkerPermissionClientProxy();
29
30 // WebWorkerPermissionClientProxy overrides.
31 virtual bool allowDatabase(const WebKit::WebString& name,
32 const WebKit::WebString& display_name,
33 unsigned long estimated_size);
34 virtual bool allowFileSystem();
35 virtual bool allowIndexedDB(const WebKit::WebString& name);
36
37 private:
38 // Loading document context for this worker.
39 const int routing_id_;
40 bool is_unique_origin_;
41 GURL document_origin_url_;
42 GURL top_frame_origin_url_;
43 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
44
45 DISALLOW_COPY_AND_ASSIGN(InRendererWorkerPermissionClientProxy);
46 };
47
48 #endif // CHROME_RENDERER_IN_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698