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

Side by Side Diff: chromecast/net/connectivity_checker.cc

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)
Patch Set: Fixing test break. Created 3 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/net/connectivity_checker.h ('k') | chromecast/net/connectivity_checker_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chromecast/net/connectivity_checker.h ('k') | chromecast/net/connectivity_checker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698