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

Side by Side Diff: chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc

Issue 288043004: Bootstrapping device lister plus tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi_lib1
Patch Set: Created 6 years, 6 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 | « chrome/browser/local_discovery/wifi/wifi_manager.cc ('k') | chrome/chrome_browser.gypi » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.h" 5 #include "chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.h"
6 6
7 #include "base/cancelable_callback.h" 7 #include "base/cancelable_callback.h"
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "components/onc/onc_constants.h" 10 #include "components/onc/onc_constants.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 return true; 395 return true;
396 } 396 }
397 397
398 void WifiManagerNonChromeos::WifiServiceWrapper::PostClosure( 398 void WifiManagerNonChromeos::WifiServiceWrapper::PostClosure(
399 const base::Closure& closure) { 399 const base::Closure& closure) {
400 callback_runner_->PostTask( 400 callback_runner_->PostTask(
401 FROM_HERE, 401 FROM_HERE,
402 base::Bind(&WifiManagerNonChromeos::PostClosure, wifi_manager_, closure)); 402 base::Bind(&WifiManagerNonChromeos::PostClosure, wifi_manager_, closure));
403 } 403 }
404 404
405 scoped_ptr<WifiManager> WifiManager::Create() { 405 scoped_ptr<WifiManager> WifiManager::CreateDefault() {
406 return scoped_ptr<WifiManager>(new WifiManagerNonChromeos()); 406 return scoped_ptr<WifiManager>(new WifiManagerNonChromeos());
407 } 407 }
408 408
409 WifiManagerNonChromeos::WifiManagerNonChromeos() 409 WifiManagerNonChromeos::WifiManagerNonChromeos()
410 : wifi_wrapper_(NULL), weak_factory_(this) { 410 : wifi_wrapper_(NULL), weak_factory_(this) {
411 } 411 }
412 412
413 WifiManagerNonChromeos::~WifiManagerNonChromeos() { 413 WifiManagerNonChromeos::~WifiManagerNonChromeos() {
414 if (wifi_wrapper_) { 414 if (wifi_wrapper_) {
415 content::BrowserThread::DeleteSoon( 415 content::BrowserThread::DeleteSoon(
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 } 509 }
510 510
511 void WifiManagerNonChromeos::RemoveNetworkListObserver( 511 void WifiManagerNonChromeos::RemoveNetworkListObserver(
512 NetworkListObserver* observer) { 512 NetworkListObserver* observer) {
513 network_list_observers_.RemoveObserver(observer); 513 network_list_observers_.RemoveObserver(observer);
514 } 514 }
515 515
516 } // namespace wifi 516 } // namespace wifi
517 517
518 } // namespace local_discovery 518 } // namespace local_discovery
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/wifi/wifi_manager.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698