OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <objidl.h> | 9 #include <objidl.h> |
10 #include <mlang.h> | 10 #include <mlang.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include "chrome/renderer/render_process.h" | 13 #include "chrome/renderer/render_process.h" |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/histogram.h" | 19 #include "base/histogram.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
22 #include "chrome/browser/net/dns_global.h" // TODO(jar): DNS calls should be re
nderer specific, not including browser. | 22 // TODO(jar): DNS calls should be renderer specific, not including browser. |
| 23 #include "chrome/browser/net/dns_global.h" |
23 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/ipc_channel.h" | 26 #include "chrome/common/ipc_channel.h" |
26 #include "chrome/common/ipc_message_utils.h" | 27 #include "chrome/common/ipc_message_utils.h" |
27 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
28 #include "chrome/common/transport_dib.h" | 29 #include "chrome/common/transport_dib.h" |
29 #include "chrome/renderer/render_view.h" | 30 #include "chrome/renderer/render_view.h" |
30 #include "webkit/glue/webkit_glue.h" | 31 #include "webkit/glue/webkit_glue.h" |
31 | 32 |
32 // Attempts to load FFmpeg before engaging the sandbox. Returns true if all | 33 // Attempts to load FFmpeg before engaging the sandbox. Returns true if all |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 294 } |
294 | 295 |
295 void RenderProcess::ClearTransportDIBCache() { | 296 void RenderProcess::ClearTransportDIBCache() { |
296 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 297 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
297 if (shared_mem_cache_[i]) { | 298 if (shared_mem_cache_[i]) { |
298 FreeTransportDIB(shared_mem_cache_[i]); | 299 FreeTransportDIB(shared_mem_cache_[i]); |
299 shared_mem_cache_[i] = NULL; | 300 shared_mem_cache_[i] = NULL; |
300 } | 301 } |
301 } | 302 } |
302 } | 303 } |
OLD | NEW |