Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |