Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 136203009: Support auto-reload on errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: More fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 webkit_platform_support_->set_plugin_refresh_allowed(false); 1283 webkit_platform_support_->set_plugin_refresh_allowed(false);
1284 blink::resetPluginCache(reload_pages); 1284 blink::resetPluginCache(reload_pages);
1285 webkit_platform_support_->set_plugin_refresh_allowed(true); 1285 webkit_platform_support_->set_plugin_refresh_allowed(true);
1286 1286
1287 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged()); 1287 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, PluginListChanged());
1288 } 1288 }
1289 1289
1290 void RenderThreadImpl::OnNetworkStateChanged(bool online) { 1290 void RenderThreadImpl::OnNetworkStateChanged(bool online) {
1291 EnsureWebKitInitialized(); 1291 EnsureWebKitInitialized();
1292 WebNetworkStateNotifier::setOnLine(online); 1292 WebNetworkStateNotifier::setOnLine(online);
1293 FOR_EACH_OBSERVER(RenderProcessObserver, observers_,
1294 NetworkStateChanged(online));
1293 } 1295 }
1294 1296
1295 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) { 1297 void RenderThreadImpl::OnTempCrashWithData(const GURL& data) {
1296 GetContentClient()->SetActiveURL(data); 1298 GetContentClient()->SetActiveURL(data);
1297 CHECK(false); 1299 CHECK(false);
1298 } 1300 }
1299 1301
1300 #if defined(OS_ANDROID) 1302 #if defined(OS_ANDROID)
1301 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) { 1303 void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) {
1302 if (suspend_webkit_shared_timer_) { 1304 if (suspend_webkit_shared_timer_) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 hidden_widget_count_--; 1417 hidden_widget_count_--;
1416 1418
1417 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1419 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1418 return; 1420 return;
1419 } 1421 }
1420 1422
1421 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1423 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1422 } 1424 }
1423 1425
1424 } // namespace content 1426 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698