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/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
22 #include "base/nss_util.h" | 22 #include "base/nss_util.h" |
23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
24 #include "base/sys_info.h" | 24 #include "base/sys_info.h" |
25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
29 #include "chrome/renderer/render_thread.h" | 29 #include "chrome/renderer/render_thread.h" |
| 30 #include "content/common/view_messages.h" |
30 #include "content/renderer/render_view.h" | 31 #include "content/renderer/render_view.h" |
31 #include "ipc/ipc_channel.h" | 32 #include "ipc/ipc_channel.h" |
32 #include "ipc/ipc_message_utils.h" | 33 #include "ipc/ipc_message_utils.h" |
33 #include "media/base/media.h" | 34 #include "media/base/media.h" |
34 #include "media/base/media_switches.h" | 35 #include "media/base/media_switches.h" |
35 #include "skia/ext/platform_canvas.h" | 36 #include "skia/ext/platform_canvas.h" |
36 #include "webkit/plugins/npapi/plugin_instance.h" | 37 #include "webkit/plugins/npapi/plugin_instance.h" |
37 #include "webkit/plugins/npapi/plugin_lib.h" | 38 #include "webkit/plugins/npapi/plugin_lib.h" |
38 #include "webkit/glue/webkit_glue.h" | 39 #include "webkit/glue/webkit_glue.h" |
39 | 40 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 } | 336 } |
336 | 337 |
337 void RenderProcessImpl::ClearTransportDIBCache() { | 338 void RenderProcessImpl::ClearTransportDIBCache() { |
338 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 339 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
339 if (shared_mem_cache_[i]) { | 340 if (shared_mem_cache_[i]) { |
340 FreeTransportDIB(shared_mem_cache_[i]); | 341 FreeTransportDIB(shared_mem_cache_[i]); |
341 shared_mem_cache_[i] = NULL; | 342 shared_mem_cache_[i] = NULL; |
342 } | 343 } |
343 } | 344 } |
344 } | 345 } |
OLD | NEW |