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

Side by Side Diff: chromecast/browser/cast_resource_dispatcher_host_delegate.cc

Issue 925183003: [Chromecast] Add connectivity checking for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments in patchset 1 Created 5 years, 10 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 | « chromecast/browser/cast_resource_dispatcher_host_delegate.h ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
6
7 #include "chromecast/browser/cast_browser_process.h"
8 #include "chromecast/net/connectivity_checker.h"
9 #include "net/base/net_errors.h"
10 #include "net/url_request/url_request.h"
11
12 namespace chromecast {
13 namespace shell {
14
15 void CastResourceDispatcherHostDelegate::RequestComplete(
16 net::URLRequest* url_request) {
17 if (!url_request->status().is_success()) {
18 LOG(ERROR) << "Failed to load resource " << url_request->url()
19 << "; status:" << url_request->status().status() << ", error:"
20 << net::ErrorToShortString(url_request->status().error());
21 CastBrowserProcess::GetInstance()->connectivity_checker()->Check();
22 }
23 }
24
25 } // namespace shell
26 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_resource_dispatcher_host_delegate.h ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698