| 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_WIN) | 46 #if defined(OS_LINUX) |
| 47 #include <strsafe.h> // note: per msdn docs, this must *follow* other includes | |
| 48 #elif defined(OS_LINUX) | |
| 49 #include "content/renderer/renderer_sandbox_support_linux.h" | 47 #include "content/renderer/renderer_sandbox_support_linux.h" |
| 50 #endif | 48 #endif |
| 51 | 49 |
| 52 // This definition of WriteBitmapFromPixels uses shared memory to communicate | 50 // This definition of WriteBitmapFromPixels uses shared memory to communicate |
| 53 // across processes. | 51 // across processes. |
| 54 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, | 52 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, |
| 55 const gfx::Size& size) { | 53 const gfx::Size& size) { |
| 56 // Do not try to write a bitmap more than once | 54 // Do not try to write a bitmap more than once |
| 57 if (shared_buf_) | 55 if (shared_buf_) |
| 58 return; | 56 return; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 314 } |
| 317 | 315 |
| 318 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 316 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 319 size_t* output_length) { | 317 size_t* output_length) { |
| 320 return renderer_sandbox_support::GetFontTable( | 318 return renderer_sandbox_support::GetFontTable( |
| 321 fd, table, output, output_length); | 319 fd, table, output, output_length); |
| 322 } | 320 } |
| 323 #endif | 321 #endif |
| 324 | 322 |
| 325 } // namespace webkit_glue | 323 } // namespace webkit_glue |
| OLD | NEW |