| 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 #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_impl.h" | 13 #include "chrome/renderer/render_process_impl.h" |
| 14 | 14 |
| 15 #include "app/surface/transport_dib.h" | 15 #include "app/surface/transport_dib.h" |
| 16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/file_util.h" | 19 #include "base/file_util.h" |
| 20 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
| 21 #include "base/histogram.h" | 21 #include "base/histogram.h" |
| 22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
| 23 #include "base/sys_info.h" | 23 #include "base/sys_info.h" |
| 24 // TODO(jar): DNS calls should be renderer specific, not including browser. | |
| 25 #include "chrome/browser/net/dns_global.h" | |
| 26 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/common/chrome_paths.h" | 25 #include "chrome/common/chrome_paths.h" |
| 28 #include "chrome/common/render_messages.h" | 26 #include "chrome/common/render_messages.h" |
| 29 #include "chrome/common/nacl_types.h" | 27 #include "chrome/common/nacl_types.h" |
| 30 #include "chrome/renderer/render_view.h" | 28 #include "chrome/renderer/render_view.h" |
| 31 #include "ipc/ipc_channel.h" | 29 #include "ipc/ipc_channel.h" |
| 32 #include "ipc/ipc_message_utils.h" | 30 #include "ipc/ipc_message_utils.h" |
| 33 #include "media/base/media.h" | 31 #include "media/base/media.h" |
| 34 #include "media/base/media_switches.h" | 32 #include "media/base/media_switches.h" |
| 35 #include "native_client/src/trusted/plugin/nacl_entry_points.h" | 33 #include "native_client/src/trusted/plugin/nacl_entry_points.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 360 } |
| 363 | 361 |
| 364 void RenderProcessImpl::ClearTransportDIBCache() { | 362 void RenderProcessImpl::ClearTransportDIBCache() { |
| 365 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 363 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 366 if (shared_mem_cache_[i]) { | 364 if (shared_mem_cache_[i]) { |
| 367 FreeTransportDIB(shared_mem_cache_[i]); | 365 FreeTransportDIB(shared_mem_cache_[i]); |
| 368 shared_mem_cache_[i] = NULL; | 366 shared_mem_cache_[i] = NULL; |
| 369 } | 367 } |
| 370 } | 368 } |
| 371 } | 369 } |
| OLD | NEW |