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 #ifndef CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ | 5 #ifndef CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ |
6 #define CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ | 6 #define CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ |
7 | 7 |
8 #include "webkit/glue/webkitclient_impl.h" | 8 #include "webkit/glue/webkitclient_impl.h" |
9 | 9 |
10 class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl { | 10 class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl { |
11 public: | 11 public: |
12 // WebKitClient methods: | 12 // WebKitClient methods: |
13 virtual WebKit::WebClipboard* clipboard(); | 13 virtual WebKit::WebClipboard* clipboard(); |
14 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 14 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
15 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 15 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
16 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 16 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
17 size_t length); | 17 size_t length); |
18 virtual bool isLinkVisited(unsigned long long linkHash); | 18 virtual bool isLinkVisited(unsigned long long linkHash); |
19 virtual void setCookies(const WebKit::WebURL& url, | 19 virtual void setCookies(const WebKit::WebURL& url, |
20 const WebKit::WebURL& policy_url, | 20 const WebKit::WebURL& policy_url, |
21 const WebKit::WebString& value); | 21 const WebKit::WebString& value); |
22 virtual WebKit::WebString cookies(const WebKit::WebURL& url, | 22 virtual WebKit::WebString cookies(const WebKit::WebURL& url, |
23 const WebKit::WebURL& policy_url); | 23 const WebKit::WebURL& policy_url); |
24 virtual void prefetchHostName(const WebKit::WebString&); | 24 virtual void prefetchHostName(const WebKit::WebString&); |
| 25 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
25 virtual WebKit::WebString defaultLocale(); | 26 virtual WebKit::WebString defaultLocale(); |
26 }; | 27 }; |
27 | 28 |
28 #endif // CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ | 29 #endif // CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ |
OLD | NEW |