| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "chromecast/net/connectivity_checker.h" | 5 #include "chromecast/net/connectivity_checker.h" |
| 6 | 6 |
| 7 #include "chromecast/net/connectivity_checker_impl.h" | 7 #include "chromecast/net/connectivity_checker_impl.h" |
| 8 | 8 |
| 9 namespace chromecast { | 9 namespace chromecast { |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 | 28 |
| 29 void ConnectivityChecker::Notify(bool connected) { | 29 void ConnectivityChecker::Notify(bool connected) { |
| 30 DCHECK(connectivity_observer_list_.get()); | 30 DCHECK(connectivity_observer_list_.get()); |
| 31 connectivity_observer_list_->Notify( | 31 connectivity_observer_list_->Notify( |
| 32 FROM_HERE, &ConnectivityObserver::OnConnectivityChanged, connected); | 32 FROM_HERE, &ConnectivityObserver::OnConnectivityChanged, connected); |
| 33 } | 33 } |
| 34 | 34 |
| 35 // static | 35 // static |
| 36 scoped_refptr<ConnectivityChecker> ConnectivityChecker::Create( | 36 scoped_refptr<ConnectivityChecker> ConnectivityChecker::Create( |
| 37 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) { | 37 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 38 return make_scoped_refptr(new ConnectivityCheckerImpl(task_runner)); | 38 net::URLRequestContextGetter* url_request_context_getter) { |
| 39 return make_scoped_refptr( |
| 40 new ConnectivityCheckerImpl(task_runner, url_request_context_getter)); |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace chromecast | 43 } // namespace chromecast |
| OLD | NEW |