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 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 webkit_platform_support_->set_plugin_refresh_allowed(false); | 1337 webkit_platform_support_->set_plugin_refresh_allowed(false); |
1338 blink::resetPluginCache(reload_pages); | 1338 blink::resetPluginCache(reload_pages); |
1339 webkit_platform_support_->set_plugin_refresh_allowed(true); | 1339 webkit_platform_support_->set_plugin_refresh_allowed(true); |
1340 | 1340 |
1341 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); | 1341 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); |
1342 } | 1342 } |
1343 | 1343 |
1344 void RenderThreadImpl::OnNetworkStateChanged(bool online) { | 1344 void RenderThreadImpl::OnNetworkStateChanged(bool online) { |
1345 EnsureWebKitInitialized(); | 1345 EnsureWebKitInitialized(); |
1346 WebNetworkStateNotifier::setOnLine(online); | 1346 WebNetworkStateNotifier::setOnLine(online); |
| 1347 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, |
| 1348 NetworkStateChanged(online)); |
1347 } | 1349 } |
1348 | 1350 |
1349 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { | 1351 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { |
1350 GetContentClient()->SetActiveURL(data); | 1352 GetContentClient()->SetActiveURL(data); |
1351 CHECK(false); | 1353 CHECK(false); |
1352 } | 1354 } |
1353 | 1355 |
1354 void RenderThreadImpl::OnUpdateTimezone() { | 1356 void RenderThreadImpl::OnUpdateTimezone() { |
1355 NotifyTimezoneChange(); | 1357 NotifyTimezoneChange(); |
1356 } | 1358 } |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 hidden_widget_count_--; | 1489 hidden_widget_count_--; |
1488 | 1490 |
1489 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1491 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1490 return; | 1492 return; |
1491 } | 1493 } |
1492 | 1494 |
1493 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1495 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1494 } | 1496 } |
1495 | 1497 |
1496 } // namespace content | 1498 } // namespace content |
OLD | NEW |