OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "webkit/glue/websocketstreamhandle_bridge.h" | 38 #include "webkit/glue/websocketstreamhandle_bridge.h" |
39 | 39 |
40 #if !defined(DISABLE_NACL) | 40 #if !defined(DISABLE_NACL) |
41 #include "native_client/src/shared/imc/nacl_imc.h" | 41 #include "native_client/src/shared/imc/nacl_imc.h" |
42 #include "native_client/src/trusted/plugin/nacl_entry_points.h" | 42 #include "native_client/src/trusted/plugin/nacl_entry_points.h" |
43 #endif | 43 #endif |
44 | 44 |
45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
46 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes | 46 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes |
47 #elif defined(OS_LINUX) | 47 #elif defined(OS_LINUX) |
48 #include "chrome/renderer/renderer_sandbox_support_linux.h" | 48 #include "content/renderer/renderer_sandbox_support_linux.h" |
49 #endif | 49 #endif |
50 | 50 |
51 // This definition of WriteBitmapFromPixels uses shared memory to communicate | 51 // This definition of WriteBitmapFromPixels uses shared memory to communicate |
52 // across processes. | 52 // across processes. |
53 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, | 53 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, |
54 const gfx::Size& size) { | 54 const gfx::Size& size) { |
55 // Do not try to write a bitmap more than once | 55 // Do not try to write a bitmap more than once |
56 if (shared_buf_) | 56 if (shared_buf_) |
57 return; | 57 return; |
58 | 58 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 307 } |
308 | 308 |
309 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 309 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
310 size_t* output_length) { | 310 size_t* output_length) { |
311 return renderer_sandbox_support::GetFontTable( | 311 return renderer_sandbox_support::GetFontTable( |
312 fd, table, output, output_length); | 312 fd, table, output, output_length); |
313 } | 313 } |
314 #endif | 314 #endif |
315 | 315 |
316 } // namespace webkit_glue | 316 } // namespace webkit_glue |
OLD | NEW |