| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ |
| 6 #define CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ | 6 #define CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "third_party/WebKit/public/web/WebWorkerPermissionClientProxy.h" | 10 #include "third_party/WebKit/public/web/WebWorkerPermissionClientProxy.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 : public blink::WebWorkerPermissionClientProxy { | 28 : public blink::WebWorkerPermissionClientProxy { |
| 29 public: | 29 public: |
| 30 WorkerPermissionClientProxy(content::RenderFrame* render_frame, | 30 WorkerPermissionClientProxy(content::RenderFrame* render_frame, |
| 31 blink::WebFrame* frame); | 31 blink::WebFrame* frame); |
| 32 virtual ~WorkerPermissionClientProxy(); | 32 virtual ~WorkerPermissionClientProxy(); |
| 33 | 33 |
| 34 // WebWorkerPermissionClientProxy overrides. | 34 // WebWorkerPermissionClientProxy overrides. |
| 35 virtual bool allowDatabase(const blink::WebString& name, | 35 virtual bool allowDatabase(const blink::WebString& name, |
| 36 const blink::WebString& display_name, | 36 const blink::WebString& display_name, |
| 37 unsigned long estimated_size); | 37 unsigned long estimated_size); |
| 38 virtual bool allowFileSystem(); | |
| 39 virtual bool requestFileSystemAccessSync(); | 38 virtual bool requestFileSystemAccessSync(); |
| 40 virtual bool allowIndexedDB(const blink::WebString& name); | 39 virtual bool allowIndexedDB(const blink::WebString& name); |
| 41 | 40 |
| 42 private: | 41 private: |
| 43 // Loading document context for this worker. | 42 // Loading document context for this worker. |
| 44 const int routing_id_; | 43 const int routing_id_; |
| 45 bool is_unique_origin_; | 44 bool is_unique_origin_; |
| 46 GURL document_origin_url_; | 45 GURL document_origin_url_; |
| 47 GURL top_frame_origin_url_; | 46 GURL top_frame_origin_url_; |
| 48 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 47 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 49 | 48 |
| 50 DISALLOW_COPY_AND_ASSIGN(WorkerPermissionClientProxy); | 49 DISALLOW_COPY_AND_ASSIGN(WorkerPermissionClientProxy); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 #endif // CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ | 52 #endif // CHROME_RENDERER_WORKER_PERMISSION_CLIENT_PROXY_H_ |
| OLD | NEW |