| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 #if defined(OS_POSIX) | 137 #if defined(OS_POSIX) |
| 138 #include "ipc/ipc_channel_posix.h" | 138 #include "ipc/ipc_channel_posix.h" |
| 139 #endif | 139 #endif |
| 140 | 140 |
| 141 #if defined(OS_WIN) | 141 #if defined(OS_WIN) |
| 142 #include <windows.h> | 142 #include <windows.h> |
| 143 #include <objbase.h> | 143 #include <objbase.h> |
| 144 #else | 144 #else |
| 145 // TODO(port) | 145 // TODO(port) |
| 146 #include "base/memory/scoped_handle.h" | |
| 147 #include "content/child/npapi/np_channel_base.h" | 146 #include "content/child/npapi/np_channel_base.h" |
| 148 #endif | 147 #endif |
| 149 | 148 |
| 150 #if defined(ENABLE_PLUGINS) | 149 #if defined(ENABLE_PLUGINS) |
| 151 #include "content/renderer/npapi/plugin_channel_host.h" | 150 #include "content/renderer/npapi/plugin_channel_host.h" |
| 152 #endif | 151 #endif |
| 153 | 152 |
| 154 using base::ThreadRestrictions; | 153 using base::ThreadRestrictions; |
| 155 using blink::WebDocument; | 154 using blink::WebDocument; |
| 156 using blink::WebFrame; | 155 using blink::WebFrame; |
| (...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 hidden_widget_count_--; | 1513 hidden_widget_count_--; |
| 1515 | 1514 |
| 1516 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1515 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1517 return; | 1516 return; |
| 1518 } | 1517 } |
| 1519 | 1518 |
| 1520 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1519 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1521 } | 1520 } |
| 1522 | 1521 |
| 1523 } // namespace content | 1522 } // namespace content |
| OLD | NEW |