| 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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 webkit_platform_support_->set_plugin_refresh_allowed(false); | 1323 webkit_platform_support_->set_plugin_refresh_allowed(false); |
| 1324 blink::resetPluginCache(reload_pages); | 1324 blink::resetPluginCache(reload_pages); |
| 1325 webkit_platform_support_->set_plugin_refresh_allowed(true); | 1325 webkit_platform_support_->set_plugin_refresh_allowed(true); |
| 1326 | 1326 |
| 1327 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); | 1327 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 void RenderThreadImpl::OnNetworkStateChanged(bool online) { | 1330 void RenderThreadImpl::OnNetworkStateChanged(bool online) { |
| 1331 EnsureWebKitInitialized(); | 1331 EnsureWebKitInitialized(); |
| 1332 WebNetworkStateNotifier::setOnLine(online); | 1332 WebNetworkStateNotifier::setOnLine(online); |
| 1333 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, |
| 1334 NetworkStateChanged(online)); |
| 1333 } | 1335 } |
| 1334 | 1336 |
| 1335 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { | 1337 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { |
| 1336 GetContentClient()->SetActiveURL(data); | 1338 GetContentClient()->SetActiveURL(data); |
| 1337 CHECK(false); | 1339 CHECK(false); |
| 1338 } | 1340 } |
| 1339 | 1341 |
| 1340 #if defined(OS_ANDROID) | 1342 #if defined(OS_ANDROID) |
| 1341 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { | 1343 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { |
| 1342 if (suspend_webkit_shared_timer_) { | 1344 if (suspend_webkit_shared_timer_) { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 hidden_widget_count_--; | 1470 hidden_widget_count_--; |
| 1469 | 1471 |
| 1470 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1472 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1471 return; | 1473 return; |
| 1472 } | 1474 } |
| 1473 | 1475 |
| 1474 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1476 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1475 } | 1477 } |
| 1476 | 1478 |
| 1477 } // namespace content | 1479 } // namespace content |
| OLD | NEW |