OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "chrome/worker/worker_webkitclient_impl.h" | 5 #include "chrome/worker/worker_webkitclient_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/common/webmessageportchannel_impl.h" | 8 #include "chrome/common/webmessageportchannel_impl.h" |
9 #include "chrome/worker/worker_thread.h" | 9 #include "chrome/worker/worker_thread.h" |
10 #include "webkit/api/public/WebString.h" | 10 #include "webkit/api/public/WebString.h" |
11 #include "webkit/api/public/WebURL.h" | 11 #include "webkit/api/public/WebURL.h" |
12 | 12 |
13 WebKit::WebClipboard* WorkerWebKitClientImpl::clipboard() { | 13 WebKit::WebClipboard* WorkerWebKitClientImpl::clipboard() { |
14 NOTREACHED(); | 14 NOTREACHED(); |
15 return NULL; | 15 return NULL; |
16 } | 16 } |
17 | 17 |
18 WebKit::WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() { | 18 WebKit::WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() { |
19 NOTREACHED(); | 19 NOTREACHED(); |
20 return NULL; | 20 return NULL; |
21 } | 21 } |
22 | 22 |
23 WebKit::WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() { | 23 WebKit::WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() { |
24 NOTREACHED(); | 24 NOTREACHED(); |
25 return NULL; | 25 return NULL; |
26 } | 26 } |
27 | 27 |
| 28 bool WorkerWebKitClientImpl::sandboxEnabled() { |
| 29 // Always return true because WebKit should always act as though the Sandbox |
| 30 // is enabled for workers. See the comment in WebKitClient for more info. |
| 31 return true; |
| 32 } |
| 33 |
28 unsigned long long WorkerWebKitClientImpl::visitedLinkHash( | 34 unsigned long long WorkerWebKitClientImpl::visitedLinkHash( |
29 const char* canonical_url, | 35 const char* canonical_url, |
30 size_t length) { | 36 size_t length) { |
31 NOTREACHED(); | 37 NOTREACHED(); |
32 return 0; | 38 return 0; |
33 } | 39 } |
34 | 40 |
35 bool WorkerWebKitClientImpl::isLinkVisited(unsigned long long link_hash) { | 41 bool WorkerWebKitClientImpl::isLinkVisited(unsigned long long link_hash) { |
36 NOTREACHED(); | 42 NOTREACHED(); |
37 return false; | 43 return false; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const WebKit::WebString& path) { | 80 const WebKit::WebString& path) { |
75 NOTREACHED(); | 81 NOTREACHED(); |
76 return 0; | 82 return 0; |
77 } | 83 } |
78 | 84 |
79 WebKit::WebStorageNamespace* | 85 WebKit::WebStorageNamespace* |
80 WorkerWebKitClientImpl::createSessionStorageNamespace() { | 86 WorkerWebKitClientImpl::createSessionStorageNamespace() { |
81 NOTREACHED(); | 87 NOTREACHED(); |
82 return 0; | 88 return 0; |
83 } | 89 } |
OLD | NEW |