| 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/api/public/WebMimeRegistry.h" |
| 8 #include "webkit/glue/webkitclient_impl.h" | 9 #include "webkit/glue/webkitclient_impl.h" |
| 9 | 10 |
| 10 class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl { | 11 class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl, |
| 12 public WebKit::WebMimeRegistry { |
| 11 public: | 13 public: |
| 12 // WebKitClient methods: | 14 // WebKitClient methods: |
| 13 virtual WebKit::WebClipboard* clipboard(); | 15 virtual WebKit::WebClipboard* clipboard(); |
| 14 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 16 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
| 15 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 17 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
| 16 virtual bool sandboxEnabled(); | 18 virtual bool sandboxEnabled(); |
| 17 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 19 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
| 18 size_t length); | 20 size_t length); |
| 19 virtual bool isLinkVisited(unsigned long long linkHash); | 21 virtual bool isLinkVisited(unsigned long long linkHash); |
| 20 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); | 22 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); |
| 21 virtual void setCookies(const WebKit::WebURL& url, | 23 virtual void setCookies(const WebKit::WebURL& url, |
| 22 const WebKit::WebURL& policy_url, | 24 const WebKit::WebURL& policy_url, |
| 23 const WebKit::WebString& value); | 25 const WebKit::WebString& value); |
| 24 virtual WebKit::WebString cookies(const WebKit::WebURL& url, | 26 virtual WebKit::WebString cookies(const WebKit::WebURL& url, |
| 25 const WebKit::WebURL& policy_url); | 27 const WebKit::WebURL& policy_url); |
| 26 virtual void prefetchHostName(const WebKit::WebString&); | 28 virtual void prefetchHostName(const WebKit::WebString&); |
| 27 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 29 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
| 28 virtual WebKit::WebString defaultLocale(); | 30 virtual WebKit::WebString defaultLocale(); |
| 29 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); | 31 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); |
| 32 |
| 33 // WebMimeRegistry methods: |
| 34 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( |
| 35 const WebKit::WebString&); |
| 36 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( |
| 37 const WebKit::WebString&); |
| 38 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
| 39 const WebKit::WebString&); |
| 40 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
| 41 const WebKit::WebString&, const WebKit::WebString&); |
| 42 virtual WebKit::WebMimeRegistry::SupportsType supportsNonImageMIMEType( |
| 43 const WebKit::WebString&); |
| 44 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); |
| 45 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
| 46 virtual WebKit::WebString preferredExtensionForMIMEType( |
| 47 const WebKit::WebString&); |
| 30 }; | 48 }; |
| 31 | 49 |
| 32 #endif // CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ | 50 #endif // CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |