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

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: MockableOneShotTimer -> base::Timer (now mockable!) 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
« no previous file with comments | « content/public/renderer/render_process_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/public/renderer/render_process_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698