OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/child/webkitplatformsupport_impl.h" | 10 #include "content/child/webkitplatformsupport_impl.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class PpapiWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl { | 14 class PpapiWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl { |
15 public: | 15 public: |
16 PpapiWebKitPlatformSupportImpl(); | 16 PpapiWebKitPlatformSupportImpl(); |
17 virtual ~PpapiWebKitPlatformSupportImpl(); | 17 virtual ~PpapiWebKitPlatformSupportImpl(); |
18 | 18 |
19 // WebKitPlatformSupport methods: | 19 // WebKitPlatformSupport methods: |
20 virtual WebKit::WebClipboard* clipboard(); | 20 virtual blink::WebClipboard* clipboard(); |
21 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 21 virtual blink::WebMimeRegistry* mimeRegistry(); |
22 virtual WebKit::WebFileUtilities* fileUtilities(); | 22 virtual blink::WebFileUtilities* fileUtilities(); |
23 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 23 virtual blink::WebSandboxSupport* sandboxSupport(); |
24 virtual bool sandboxEnabled(); | 24 virtual bool sandboxEnabled(); |
25 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 25 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
26 size_t length); | 26 size_t length); |
27 virtual bool isLinkVisited(unsigned long long linkHash); | 27 virtual bool isLinkVisited(unsigned long long linkHash); |
28 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); | 28 virtual blink::WebMessagePortChannel* createMessagePortChannel(); |
29 virtual void setCookies(const WebKit::WebURL& url, | 29 virtual void setCookies(const blink::WebURL& url, |
30 const WebKit::WebURL& first_party_for_cookies, | 30 const blink::WebURL& first_party_for_cookies, |
31 const WebKit::WebString& value); | 31 const blink::WebString& value); |
32 virtual WebKit::WebString cookies( | 32 virtual blink::WebString cookies( |
33 const WebKit::WebURL& url, | 33 const blink::WebURL& url, |
34 const WebKit::WebURL& first_party_for_cookies); | 34 const blink::WebURL& first_party_for_cookies); |
35 virtual WebKit::WebString defaultLocale(); | 35 virtual blink::WebString defaultLocale(); |
36 virtual WebKit::WebThemeEngine* themeEngine(); | 36 virtual blink::WebThemeEngine* themeEngine(); |
37 virtual WebKit::WebURLLoader* createURLLoader(); | 37 virtual blink::WebURLLoader* createURLLoader(); |
38 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); | 38 virtual blink::WebSocketStreamHandle* createSocketStreamHandle(); |
39 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 39 virtual void getPluginList(bool refresh, blink::WebPluginListBuilder*); |
40 virtual WebKit::WebData loadResource(const char* name); | 40 virtual blink::WebData loadResource(const char* name); |
41 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(); | 41 virtual blink::WebStorageNamespace* createLocalStorageNamespace(); |
42 virtual void dispatchStorageEvent(const WebKit::WebString& key, | 42 virtual void dispatchStorageEvent(const blink::WebString& key, |
43 const WebKit::WebString& oldValue, const WebKit::WebString& newValue, | 43 const blink::WebString& oldValue, const blink::WebString& newValue, |
44 const WebKit::WebString& origin, const WebKit::WebURL& url, | 44 const blink::WebString& origin, const blink::WebURL& url, |
45 bool isLocalStorage); | 45 bool isLocalStorage); |
46 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 46 virtual int databaseDeleteFile(const blink::WebString& vfs_file_name, |
47 bool sync_dir); | 47 bool sync_dir); |
48 | 48 |
49 private: | 49 private: |
50 class SandboxSupport; | 50 class SandboxSupport; |
51 scoped_ptr<SandboxSupport> sandbox_support_; | 51 scoped_ptr<SandboxSupport> sandbox_support_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(PpapiWebKitPlatformSupportImpl); | 53 DISALLOW_COPY_AND_ASSIGN(PpapiWebKitPlatformSupportImpl); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ | 58 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |