| 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_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "content/child/blink_platform_impl.h" | 14 #include "content/child/blink_platform_impl.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class PpapiBlinkPlatformImpl : public BlinkPlatformImpl { | 18 class PpapiBlinkPlatformImpl : public BlinkPlatformImpl { |
| 19 public: | 19 public: |
| 20 PpapiBlinkPlatformImpl(); | 20 PpapiBlinkPlatformImpl(); |
| 21 ~PpapiBlinkPlatformImpl() override; | 21 ~PpapiBlinkPlatformImpl() override; |
| 22 | 22 |
| 23 // Shutdown must be called just prior to shutting down blink. | 23 // Shutdown must be called just prior to shutting down blink. |
| 24 void Shutdown(); | 24 void Shutdown(); |
| 25 | 25 |
| 26 // BlinkPlatformImpl methods: | 26 // BlinkPlatformImpl methods: |
| 27 blink::WebThread* currentThread() override; | 27 blink::WebThread* currentThread() override; |
| 28 blink::WebClipboard* clipboard() override; | 28 blink::WebClipboard* clipboard() override; |
| 29 blink::WebMimeRegistry* mimeRegistry() override; | |
| 30 blink::WebFileUtilities* fileUtilities() override; | 29 blink::WebFileUtilities* fileUtilities() override; |
| 31 blink::WebSandboxSupport* sandboxSupport() override; | 30 blink::WebSandboxSupport* sandboxSupport() override; |
| 32 virtual bool sandboxEnabled(); | 31 virtual bool sandboxEnabled(); |
| 33 unsigned long long visitedLinkHash(const char* canonicalURL, | 32 unsigned long long visitedLinkHash(const char* canonicalURL, |
| 34 size_t length) override; | 33 size_t length) override; |
| 35 bool isLinkVisited(unsigned long long linkHash) override; | 34 bool isLinkVisited(unsigned long long linkHash) override; |
| 36 void createMessageChannel(blink::WebMessagePortChannel** channel1, | 35 void createMessageChannel(blink::WebMessagePortChannel** channel1, |
| 37 blink::WebMessagePortChannel** channel2) override; | 36 blink::WebMessagePortChannel** channel2) override; |
| 38 virtual void setCookies(const blink::WebURL& url, | 37 virtual void setCookies(const blink::WebURL& url, |
| 39 const blink::WebURL& first_party_for_cookies, | 38 const blink::WebURL& first_party_for_cookies, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 61 class SandboxSupport; | 60 class SandboxSupport; |
| 62 std::unique_ptr<SandboxSupport> sandbox_support_; | 61 std::unique_ptr<SandboxSupport> sandbox_support_; |
| 63 #endif | 62 #endif |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(PpapiBlinkPlatformImpl); | 64 DISALLOW_COPY_AND_ASSIGN(PpapiBlinkPlatformImpl); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace content | 67 } // namespace content |
| 69 | 68 |
| 70 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ | 69 #endif // CONTENT_PPAPI_PLUGIN_PPAPI_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |