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 #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h" | 5 #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #endif | 29 #endif |
30 | 30 |
31 using WebKit::WebSandboxSupport; | 31 using WebKit::WebSandboxSupport; |
32 using WebKit::WebString; | 32 using WebKit::WebString; |
33 using WebKit::WebUChar; | 33 using WebKit::WebUChar; |
34 | 34 |
35 typedef struct CGFont* CGFontRef; | 35 typedef struct CGFont* CGFontRef; |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 class PpapiWebKitPlatformSupportImpl::SandboxSupport : public WebSandboxSupport
{ | 39 class PpapiWebKitPlatformSupportImpl::SandboxSupport |
| 40 : public WebSandboxSupport { |
40 public: | 41 public: |
41 virtual ~SandboxSupport() {} | 42 virtual ~SandboxSupport() {} |
42 | 43 |
43 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
44 virtual bool ensureFontLoaded(HFONT); | 45 virtual bool ensureFontLoaded(HFONT); |
45 #elif defined(OS_MACOSX) | 46 #elif defined(OS_MACOSX) |
46 virtual bool loadFont( | 47 virtual bool loadFont( |
47 NSFont* srcFont, CGFontRef* out, uint32_t* fontID); | 48 NSFont* srcFont, CGFontRef* out, uint32_t* fontID); |
48 #elif defined(OS_POSIX) | 49 #elif defined(OS_POSIX) |
49 virtual void getFontFamilyForCharacters( | 50 virtual void getFontFamilyForCharacters( |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 return true; // Assume PPAPI is always sandboxed. | 173 return true; // Assume PPAPI is always sandboxed. |
173 } | 174 } |
174 | 175 |
175 unsigned long long PpapiWebKitPlatformSupportImpl::visitedLinkHash( | 176 unsigned long long PpapiWebKitPlatformSupportImpl::visitedLinkHash( |
176 const char* canonical_url, | 177 const char* canonical_url, |
177 size_t length) { | 178 size_t length) { |
178 NOTREACHED(); | 179 NOTREACHED(); |
179 return 0; | 180 return 0; |
180 } | 181 } |
181 | 182 |
182 bool PpapiWebKitPlatformSupportImpl::isLinkVisited(unsigned long long link_hash)
{ | 183 bool PpapiWebKitPlatformSupportImpl::isLinkVisited( |
| 184 unsigned long long link_hash) { |
183 NOTREACHED(); | 185 NOTREACHED(); |
184 return false; | 186 return false; |
185 } | 187 } |
186 | 188 |
187 WebKit::WebMessagePortChannel* | 189 WebKit::WebMessagePortChannel* |
188 PpapiWebKitPlatformSupportImpl::createMessagePortChannel() { | 190 PpapiWebKitPlatformSupportImpl::createMessagePortChannel() { |
189 NOTREACHED(); | 191 NOTREACHED(); |
190 return NULL; | 192 return NULL; |
191 } | 193 } |
192 | 194 |
193 void PpapiWebKitPlatformSupportImpl::setCookies( | 195 void PpapiWebKitPlatformSupportImpl::setCookies( |
194 const WebKit::WebURL& url, | 196 const WebKit::WebURL& url, |
195 const WebKit::WebURL& first_party_for_cookies, | 197 const WebKit::WebURL& first_party_for_cookies, |
196 const WebKit::WebString& value) { | 198 const WebKit::WebString& value) { |
197 NOTREACHED(); | 199 NOTREACHED(); |
198 } | 200 } |
199 | 201 |
200 WebKit::WebString PpapiWebKitPlatformSupportImpl::cookies( | 202 WebKit::WebString PpapiWebKitPlatformSupportImpl::cookies( |
201 const WebKit::WebURL& url, | 203 const WebKit::WebURL& url, |
202 const WebKit::WebURL& first_party_for_cookies) { | 204 const WebKit::WebURL& first_party_for_cookies) { |
203 NOTREACHED(); | 205 NOTREACHED(); |
204 return WebKit::WebString(); | 206 return WebKit::WebString(); |
205 } | 207 } |
206 | 208 |
207 void PpapiWebKitPlatformSupportImpl::prefetchHostName(const WebKit::WebString&)
{ | 209 void PpapiWebKitPlatformSupportImpl::prefetchHostName( |
| 210 const WebKit::WebString&) { |
208 NOTREACHED(); | 211 NOTREACHED(); |
209 } | 212 } |
210 | 213 |
211 WebKit::WebString PpapiWebKitPlatformSupportImpl::defaultLocale() { | 214 WebKit::WebString PpapiWebKitPlatformSupportImpl::defaultLocale() { |
212 NOTREACHED(); | 215 NOTREACHED(); |
213 return WebKit::WebString(); | 216 return WebKit::WebString(); |
214 } | 217 } |
215 | 218 |
216 WebKit::WebThemeEngine* PpapiWebKitPlatformSupportImpl::themeEngine() { | 219 WebKit::WebThemeEngine* PpapiWebKitPlatformSupportImpl::themeEngine() { |
217 NOTREACHED(); | 220 NOTREACHED(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 NOTREACHED(); | 256 NOTREACHED(); |
254 } | 257 } |
255 | 258 |
256 int PpapiWebKitPlatformSupportImpl::databaseDeleteFile( | 259 int PpapiWebKitPlatformSupportImpl::databaseDeleteFile( |
257 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 260 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
258 NOTREACHED(); | 261 NOTREACHED(); |
259 return 0; | 262 return 0; |
260 } | 263 } |
261 | 264 |
262 } // namespace content | 265 } // namespace content |
OLD | NEW |