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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 webkit_platform_support_->set_plugin_refresh_allowed(false); | 1319 webkit_platform_support_->set_plugin_refresh_allowed(false); |
1320 blink::resetPluginCache(reload_pages); | 1320 blink::resetPluginCache(reload_pages); |
1321 webkit_platform_support_->set_plugin_refresh_allowed(true); | 1321 webkit_platform_support_->set_plugin_refresh_allowed(true); |
1322 | 1322 |
1323 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); | 1323 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); |
1324 } | 1324 } |
1325 | 1325 |
1326 void RenderThreadImpl::OnNetworkStateChanged(bool online) { | 1326 void RenderThreadImpl::OnNetworkStateChanged(bool online) { |
1327 EnsureWebKitInitialized(); | 1327 EnsureWebKitInitialized(); |
1328 WebNetworkStateNotifier::setOnLine(online); | 1328 WebNetworkStateNotifier::setOnLine(online); |
| 1329 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, |
| 1330 NetworkStateChanged(online)); |
1329 } | 1331 } |
1330 | 1332 |
1331 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { | 1333 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { |
1332 GetContentClient()->SetActiveURL(data); | 1334 GetContentClient()->SetActiveURL(data); |
1333 CHECK(false); | 1335 CHECK(false); |
1334 } | 1336 } |
1335 | 1337 |
1336 #if defined(OS_ANDROID) | 1338 #if defined(OS_ANDROID) |
1337 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { | 1339 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { |
1338 if (suspend_webkit_shared_timer_) { | 1340 if (suspend_webkit_shared_timer_) { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 hidden_widget_count_--; | 1456 hidden_widget_count_--; |
1455 | 1457 |
1456 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1458 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1457 return; | 1459 return; |
1458 } | 1460 } |
1459 | 1461 |
1460 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1462 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1461 } | 1463 } |
1462 | 1464 |
1463 } // namespace content | 1465 } // namespace content |
OLD | NEW |