Fix build break
[chromium-blink-merge.git] / content / ppapi_plugin / ppapi_webkitplatformsupport_impl.h
blob7a1a4482f06c424cc2e7051403752c724748758b
1 // Copyright (c) 2012 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.
5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/webkitplatformsupport_impl.h"
12 namespace content {
14 class PpapiWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl {
15 public:
16 PpapiWebKitPlatformSupportImpl();
17 virtual ~PpapiWebKitPlatformSupportImpl();
19 // WebKitPlatformSupport methods:
20 virtual WebKit::WebClipboard* clipboard();
21 virtual WebKit::WebMimeRegistry* mimeRegistry();
22 virtual WebKit::WebFileUtilities* fileUtilities();
23 virtual WebKit::WebSandboxSupport* sandboxSupport();
24 virtual bool sandboxEnabled();
25 virtual unsigned long long visitedLinkHash(const char* canonicalURL,
26 size_t length);
27 virtual bool isLinkVisited(unsigned long long linkHash);
28 virtual WebKit::WebMessagePortChannel* createMessagePortChannel();
29 virtual void setCookies(const WebKit::WebURL& url,
30 const WebKit::WebURL& first_party_for_cookies,
31 const WebKit::WebString& value);
32 virtual WebKit::WebString cookies(
33 const WebKit::WebURL& url,
34 const WebKit::WebURL& first_party_for_cookies);
35 virtual void prefetchHostName(const WebKit::WebString&);
36 virtual WebKit::WebString defaultLocale();
37 virtual WebKit::WebThemeEngine* themeEngine();
38 virtual WebKit::WebURLLoader* createURLLoader();
39 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle();
40 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*);
41 virtual WebKit::WebData loadResource(const char* name);
42 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(
43 const WebKit::WebString& path, unsigned quota);
44 virtual void dispatchStorageEvent(const WebKit::WebString& key,
45 const WebKit::WebString& oldValue, const WebKit::WebString& newValue,
46 const WebKit::WebString& origin, const WebKit::WebURL& url,
47 bool isLocalStorage);
48 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
49 bool sync_dir);
51 private:
52 class SandboxSupport;
53 scoped_ptr<SandboxSupport> sandbox_support_;
55 DISALLOW_COPY_AND_ASSIGN(PpapiWebKitPlatformSupportImpl);
58 } // namespace content
60 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_