[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / content / browser / in_process_webkit / browser_webkitplatformsupport_impl.h
blob11d4ea83205e8ee6020ae828ee52010219218423
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_BROWSER_IN_PROCESS_WEBKIT_BROWSER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_BROWSER_WEBKITPLATFORMSUPPORT_IMPL_H_
8 #include "content/common/webkitplatformsupport_impl.h"
9 #include "webkit/glue/webfileutilities_impl.h"
11 namespace content {
13 class BrowserWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl {
14 public:
15 BrowserWebKitPlatformSupportImpl();
16 virtual ~BrowserWebKitPlatformSupportImpl();
18 // WebKitPlatformSupport 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 int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
42 bool sync_dir);
44 protected:
45 virtual GpuChannelHostFactory* GetGpuChannelHostFactory() OVERRIDE;
47 private:
48 webkit_glue::WebFileUtilitiesImpl file_utilities_;
51 } // namespace content
53 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_BROWSER_WEBKITPLATFORMSUPPORT_IMPL_H_