OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 25 matching lines...) Expand all Loading... |
36 #include "ui/base/resource/resource_bundle.h" | 36 #include "ui/base/resource/resource_bundle.h" |
37 #include "webkit/glue/scoped_clipboard_writer_glue.h" | 37 #include "webkit/glue/scoped_clipboard_writer_glue.h" |
38 #include "webkit/glue/webkit_glue.h" | 38 #include "webkit/glue/webkit_glue.h" |
39 #include "webkit/glue/websocketstreamhandle_bridge.h" | 39 #include "webkit/glue/websocketstreamhandle_bridge.h" |
40 | 40 |
41 #if !defined(DISABLE_NACL) | 41 #if !defined(DISABLE_NACL) |
42 #include "native_client/src/shared/imc/nacl_imc.h" | 42 #include "native_client/src/shared/imc/nacl_imc.h" |
43 #include "native_client/src/trusted/plugin/nacl_entry_points.h" | 43 #include "native_client/src/trusted/plugin/nacl_entry_points.h" |
44 #endif | 44 #endif |
45 | 45 |
46 #if defined(OS_LINUX) | 46 #if defined(OS_WIN) |
| 47 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes |
| 48 #elif defined(OS_LINUX) |
47 #include "content/renderer/renderer_sandbox_support_linux.h" | 49 #include "content/renderer/renderer_sandbox_support_linux.h" |
48 #endif | 50 #endif |
49 | 51 |
50 // This definition of WriteBitmapFromPixels uses shared memory to communicate | 52 // This definition of WriteBitmapFromPixels uses shared memory to communicate |
51 // across processes. | 53 // across processes. |
52 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, | 54 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, |
53 const gfx::Size& size) { | 55 const gfx::Size& size) { |
54 // Do not try to write a bitmap more than once | 56 // Do not try to write a bitmap more than once |
55 if (shared_buf_) | 57 if (shared_buf_) |
56 return; | 58 return; |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 316 } |
315 | 317 |
316 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 318 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
317 size_t* output_length) { | 319 size_t* output_length) { |
318 return renderer_sandbox_support::GetFontTable( | 320 return renderer_sandbox_support::GetFontTable( |
319 fd, table, output, output_length); | 321 fd, table, output, output_length); |
320 } | 322 } |
321 #endif | 323 #endif |
322 | 324 |
323 } // namespace webkit_glue | 325 } // namespace webkit_glue |
OLD | NEW |