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

Side by Side Diff: chrome/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: addressed comments 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_WORKER_PERMISSION_CLIENT_PROXY_H_
6 #define CHROME_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 content {
18 class RenderView;
19 }
20
21 namespace WebKit {
22 class WebFrame;
23 }
24
25 // This proxy is created on the main renderer thread then passed onto
26 // the blink's worker thread.
27 class WorkerPermissionClientProxy
28 : public WebKit::WebWorkerPermissionClientProxy {
29 public:
30 WorkerPermissionClientProxy(content::RenderView* render_view,
31 WebKit::WebFrame* frame);
32 virtual ~WorkerPermissionClientProxy();
33
34 // WebWorkerPermissionClientProxy overrides.
35 virtual bool allowDatabase(const WebKit::WebString& name,
36 const WebKit::WebString& display_name,
37 unsigned long estimated_size);
38 virtual bool allowFileSystem();
39 virtual bool allowIndexedDB(const WebKit::WebString& name);
40
41 private:
42 // Loading document context for this worker.
43 const int routing_id_;
44 bool is_unique_origin_;
45 GURL document_origin_url_;
46 GURL top_frame_origin_url_;
47 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
48
49 DISALLOW_COPY_AND_ASSIGN(WorkerPermissionClientProxy);
50 };
51
52 #endif // CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/worker_permission_client_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698