| 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 WEBKIT_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| 11 #include <windows.h> | 11 #include <windows.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
| 18 #include "base/string16.h" | 18 #include "base/string16.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerP
olicy.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerP
olicy.h" |
| 21 #include "webkit/glue/webkit_glue_export.h" | 21 #include "webkit/glue/webkit_glue_export.h" |
| 22 | 22 |
| 23 class SkBitmap; | 23 class SkBitmap; |
| 24 class SkCanvas; |
| 24 | 25 |
| 25 namespace net { | 26 namespace net { |
| 26 class URLRequest; | 27 class URLRequest; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace skia { | |
| 30 class PlatformCanvas; | |
| 31 } | |
| 32 | |
| 33 namespace WebKit { | 30 namespace WebKit { |
| 34 struct WebFileInfo; | 31 struct WebFileInfo; |
| 35 class WebFrame; | 32 class WebFrame; |
| 36 } | 33 } |
| 37 | 34 |
| 38 namespace webkit_glue { | 35 namespace webkit_glue { |
| 39 | 36 |
| 40 WEBKIT_GLUE_EXPORT void SetJavaScriptFlags(const std::string& flags); | 37 WEBKIT_GLUE_EXPORT void SetJavaScriptFlags(const std::string& flags); |
| 41 | 38 |
| 42 // Turn on logging for flags in the provided comma delimited list. | 39 // Turn on logging for flags in the provided comma delimited list. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Returns true if the plugin thread should terminate the process forcefully | 89 // Returns true if the plugin thread should terminate the process forcefully |
| 93 // instead of exiting cleanly. | 90 // instead of exiting cleanly. |
| 94 WEBKIT_GLUE_EXPORT bool ShouldForcefullyTerminatePluginProcess(); | 91 WEBKIT_GLUE_EXPORT bool ShouldForcefullyTerminatePluginProcess(); |
| 95 | 92 |
| 96 // File info conversion | 93 // File info conversion |
| 97 WEBKIT_GLUE_EXPORT void PlatformFileInfoToWebFileInfo( | 94 WEBKIT_GLUE_EXPORT void PlatformFileInfoToWebFileInfo( |
| 98 const base::PlatformFileInfo& file_info, | 95 const base::PlatformFileInfo& file_info, |
| 99 WebKit::WebFileInfo* web_file_info); | 96 WebKit::WebFileInfo* web_file_info); |
| 100 | 97 |
| 101 // Returns a WebCanvas pointer associated with the given Skia canvas. | 98 // Returns a WebCanvas pointer associated with the given Skia canvas. |
| 102 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*); | 99 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(SkCanvas*); |
| 103 | 100 |
| 104 // Returns the number of currently-active glyph pages this process is using. | 101 // Returns the number of currently-active glyph pages this process is using. |
| 105 // There can be many such pages (maps of 256 character -> glyph) so this is | 102 // There can be many such pages (maps of 256 character -> glyph) so this is |
| 106 // used to get memory usage statistics. | 103 // used to get memory usage statistics. |
| 107 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); | 104 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); |
| 108 | 105 |
| 109 // Returns WebKit Web Inspector protocol version. | 106 // Returns WebKit Web Inspector protocol version. |
| 110 std::string GetInspectorProtocolVersion(); | 107 std::string GetInspectorProtocolVersion(); |
| 111 | 108 |
| 112 // Tells caller whether the given protocol version is supported by the. | 109 // Tells caller whether the given protocol version is supported by the. |
| 113 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( | 110 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( |
| 114 const std::string& version); | 111 const std::string& version); |
| 115 | 112 |
| 116 // Configures the URLRequest according to the referrer policy. | 113 // Configures the URLRequest according to the referrer policy. |
| 117 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( | 114 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( |
| 118 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); | 115 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); |
| 119 | 116 |
| 120 } // namespace webkit_glue | 117 } // namespace webkit_glue |
| 121 | 118 |
| 122 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 119 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |