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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "content/common/frame_messages.h" | 53 #include "content/common/frame_messages.h" |
54 #include "content/common/gpu/client/context_provider_command_buffer.h" | 54 #include "content/common/gpu/client/context_provider_command_buffer.h" |
55 #include "content/common/gpu/client/gpu_channel_host.h" | 55 #include "content/common/gpu/client/gpu_channel_host.h" |
56 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 56 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
57 #include "content/common/gpu/gpu_messages.h" | 57 #include "content/common/gpu/gpu_messages.h" |
58 #include "content/common/gpu/gpu_process_launch_causes.h" | 58 #include "content/common/gpu/gpu_process_launch_causes.h" |
59 #include "content/common/render_frame_setup.mojom.h" | 59 #include "content/common/render_frame_setup.mojom.h" |
60 #include "content/common/resource_messages.h" | 60 #include "content/common/resource_messages.h" |
61 #include "content/common/view_messages.h" | 61 #include "content/common/view_messages.h" |
62 #include "content/common/worker_messages.h" | 62 #include "content/common/worker_messages.h" |
63 #include "content/grit/content_resources.h" | |
64 #include "content/public/common/content_constants.h" | 63 #include "content/public/common/content_constants.h" |
65 #include "content/public/common/content_paths.h" | 64 #include "content/public/common/content_paths.h" |
66 #include "content/public/common/content_switches.h" | 65 #include "content/public/common/content_switches.h" |
67 #include "content/public/common/renderer_preferences.h" | 66 #include "content/public/common/renderer_preferences.h" |
68 #include "content/public/common/url_constants.h" | 67 #include "content/public/common/url_constants.h" |
69 #include "content/public/renderer/content_renderer_client.h" | 68 #include "content/public/renderer/content_renderer_client.h" |
70 #include "content/public/renderer/render_process_observer.h" | 69 #include "content/public/renderer/render_process_observer.h" |
71 #include "content/public/renderer/render_view_visitor.h" | 70 #include "content/public/renderer/render_view_visitor.h" |
72 #include "content/renderer/devtools/devtools_agent_filter.h" | 71 #include "content/renderer/devtools/devtools_agent_filter.h" |
73 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" | 72 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" |
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 hidden_widget_count_--; | 1644 hidden_widget_count_--; |
1646 | 1645 |
1647 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1646 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1648 return; | 1647 return; |
1649 } | 1648 } |
1650 | 1649 |
1651 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1650 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1652 } | 1651 } |
1653 | 1652 |
1654 } // namespace content | 1653 } // namespace content |
OLD | NEW |