OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_PPAPI_PLUGIN_PPAPI_WEBKITCLIENT_IMPL_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITCLIENT_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" |
| 11 #include "webkit/glue/webkitclient_impl.h" |
| 12 |
| 13 class PpapiWebKitClientImpl : public webkit_glue::WebKitClientImpl { |
| 14 public: |
| 15 PpapiWebKitClientImpl(); |
| 16 virtual ~PpapiWebKitClientImpl(); |
| 17 |
| 18 // WebKitClient methods: |
| 19 virtual WebKit::WebClipboard* clipboard(); |
| 20 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
| 21 virtual WebKit::WebFileUtilities* fileUtilities(); |
| 22 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
| 23 virtual bool sandboxEnabled(); |
| 24 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
| 25 size_t length); |
| 26 virtual bool isLinkVisited(unsigned long long linkHash); |
| 27 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); |
| 28 virtual void setCookies(const WebKit::WebURL& url, |
| 29 const WebKit::WebURL& first_party_for_cookies, |
| 30 const WebKit::WebString& value); |
| 31 virtual WebKit::WebString cookies( |
| 32 const WebKit::WebURL& url, |
| 33 const WebKit::WebURL& first_party_for_cookies); |
| 34 virtual void prefetchHostName(const WebKit::WebString&); |
| 35 virtual WebKit::WebString defaultLocale(); |
| 36 virtual WebKit::WebThemeEngine* themeEngine(); |
| 37 virtual WebKit::WebURLLoader* createURLLoader(); |
| 38 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
| 39 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
| 40 virtual WebKit::WebData loadResource(const char* name); |
| 41 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
| 42 const WebKit::WebString& path, unsigned quota); |
| 43 virtual void dispatchStorageEvent(const WebKit::WebString& key, |
| 44 const WebKit::WebString& oldValue, const WebKit::WebString& newValue, |
| 45 const WebKit::WebString& origin, const WebKit::WebURL& url, |
| 46 bool isLocalStorage); |
| 47 virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); |
| 48 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, |
| 49 bool sync_dir); |
| 50 virtual void createIDBKeysFromSerializedValuesAndKeyPath( |
| 51 const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values, |
| 52 const WebKit::WebString& keyPath, |
| 53 WebKit::WebVector<WebKit::WebIDBKey>& keys); |
| 54 virtual WebKit::WebSerializedScriptValue injectIDBKeyIntoSerializedValue( |
| 55 const WebKit::WebIDBKey& key, |
| 56 const WebKit::WebSerializedScriptValue& value, |
| 57 const WebKit::WebString& keyPath); |
| 58 |
| 59 private: |
| 60 class SandboxSupport; |
| 61 scoped_ptr<SandboxSupport> sandbox_support_; |
| 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(PpapiWebKitClientImpl); |
| 64 }; |
| 65 |
| 66 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITCLIENT_IMPL_H_ |
OLD | NEW |