| OLD | NEW |
| 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 "chrome/browser/extensions/api/dial/dial_api.h" | 5 #include "chrome/browser/extensions/api/dial/dial_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 164 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 165 result_ = dial_->dial_registry()->DiscoverNow(); | 165 result_ = dial_->dial_registry()->DiscoverNow(); |
| 166 } | 166 } |
| 167 | 167 |
| 168 bool DialDiscoverNowFunction::Respond() { | 168 bool DialDiscoverNowFunction::Respond() { |
| 169 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 169 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 170 SetResult(base::MakeUnique<base::FundamentalValue>(result_)); | 170 SetResult(base::MakeUnique<base::FundamentalValue>(result_)); |
| 171 return true; | 171 return true; |
| 172 } | 172 } |
| 173 | 173 |
| 174 bool DialGetNetworkIdFunction::Prepare() { |
| 175 // TODO: implement |
| 176 return true; |
| 177 } |
| 178 |
| 179 void DialGetNetworkIdFunction::Work() { |
| 180 // TODO: implement |
| 181 } |
| 182 |
| 183 bool DialGetNetworkIdFunction::Respond() { |
| 184 // TODO: implement |
| 185 return true; |
| 186 } |
| 187 |
| 174 } // namespace api | 188 } // namespace api |
| 175 | 189 |
| 176 } // namespace extensions | 190 } // namespace extensions |
| OLD | NEW |