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 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 webkit_platform_support_->set_plugin_refresh_allowed(false); | 1276 webkit_platform_support_->set_plugin_refresh_allowed(false); |
1277 blink::resetPluginCache(reload_pages); | 1277 blink::resetPluginCache(reload_pages); |
1278 webkit_platform_support_->set_plugin_refresh_allowed(true); | 1278 webkit_platform_support_->set_plugin_refresh_allowed(true); |
1279 | 1279 |
1280 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); | 1280 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); |
1281 } | 1281 } |
1282 | 1282 |
1283 void RenderThreadImpl::OnNetworkStateChanged(bool online) { | 1283 void RenderThreadImpl::OnNetworkStateChanged(bool online) { |
1284 EnsureWebKitInitialized(); | 1284 EnsureWebKitInitialized(); |
1285 WebNetworkStateNotifier::setOnLine(online); | 1285 WebNetworkStateNotifier::setOnLine(online); |
| 1286 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, |
| 1287 NetworkStateChanged(online)); |
1286 } | 1288 } |
1287 | 1289 |
1288 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { | 1290 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { |
1289 GetContentClient()->SetActiveURL(data); | 1291 GetContentClient()->SetActiveURL(data); |
1290 CHECK(false); | 1292 CHECK(false); |
1291 } | 1293 } |
1292 | 1294 |
1293 #if defined(OS_ANDROID) | 1295 #if defined(OS_ANDROID) |
1294 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { | 1296 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { |
1295 if (suspend_webkit_shared_timer_) { | 1297 if (suspend_webkit_shared_timer_) { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 hidden_widget_count_--; | 1410 hidden_widget_count_--; |
1409 | 1411 |
1410 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1412 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1411 return; | 1413 return; |
1412 } | 1414 } |
1413 | 1415 |
1414 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1416 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1415 } | 1417 } |
1416 | 1418 |
1417 } // namespace content | 1419 } // namespace content |
OLD | NEW |