| OLD | NEW |
| 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/extensions/api/gcd_private/gcd_private_api.h" | 5 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/local_discovery/cloud_device_list.h" | 9 #include "chrome/browser/local_discovery/cloud_device_list.h" |
| 10 #include "chrome/browser/local_discovery/cloud_print_printer_list.h" | 10 #include "chrome/browser/local_discovery/cloud_print_printer_list.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 if (!gcd_api->QueryForDevices()) { | 277 if (!gcd_api->QueryForDevices()) { |
| 278 error_ = | 278 error_ = |
| 279 "You must first subscribe to onDeviceStateChanged or onDeviceRemoved " | 279 "You must first subscribe to onDeviceStateChanged or onDeviceRemoved " |
| 280 "notifications"; | 280 "notifications"; |
| 281 return false; | 281 return false; |
| 282 } | 282 } |
| 283 | 283 |
| 284 return true; | 284 return true; |
| 285 } | 285 } |
| 286 | 286 |
| 287 GcdPrivateStartSetupFunction::GcdPrivateStartSetupFunction() { | 287 GcdPrivatePrefetchWifiPasswordFunction:: |
| 288 GcdPrivatePrefetchWifiPasswordFunction() { |
| 288 } | 289 } |
| 289 | 290 |
| 290 GcdPrivateStartSetupFunction::~GcdPrivateStartSetupFunction() { | 291 GcdPrivatePrefetchWifiPasswordFunction:: |
| 292 ~GcdPrivatePrefetchWifiPasswordFunction() { |
| 291 } | 293 } |
| 292 | 294 |
| 293 bool GcdPrivateStartSetupFunction::RunAsync() { | 295 bool GcdPrivatePrefetchWifiPasswordFunction::RunAsync() { |
| 294 return false; | 296 return false; |
| 295 } | 297 } |
| 296 | 298 |
| 297 GcdPrivateSetWiFiNetworkFunction::GcdPrivateSetWiFiNetworkFunction() { | 299 GcdPrivateEstablishSessionFunction::GcdPrivateEstablishSessionFunction() { |
| 298 } | 300 } |
| 299 | 301 |
| 300 GcdPrivateSetWiFiNetworkFunction::~GcdPrivateSetWiFiNetworkFunction() { | 302 GcdPrivateEstablishSessionFunction::~GcdPrivateEstablishSessionFunction() { |
| 301 } | 303 } |
| 302 | 304 |
| 303 bool GcdPrivateSetWiFiNetworkFunction::RunAsync() { | 305 bool GcdPrivateEstablishSessionFunction::RunAsync() { |
| 304 return false; | |
| 305 } | |
| 306 | |
| 307 GcdPrivateSetWiFiPasswordFunction::GcdPrivateSetWiFiPasswordFunction() { | |
| 308 } | |
| 309 | |
| 310 GcdPrivateSetWiFiPasswordFunction::~GcdPrivateSetWiFiPasswordFunction() { | |
| 311 } | |
| 312 | |
| 313 bool GcdPrivateSetWiFiPasswordFunction::RunAsync() { | |
| 314 return false; | 306 return false; |
| 315 } | 307 } |
| 316 | 308 |
| 317 GcdPrivateConfirmCodeFunction::GcdPrivateConfirmCodeFunction() { | 309 GcdPrivateConfirmCodeFunction::GcdPrivateConfirmCodeFunction() { |
| 318 } | 310 } |
| 319 | 311 |
| 320 GcdPrivateConfirmCodeFunction::~GcdPrivateConfirmCodeFunction() { | 312 GcdPrivateConfirmCodeFunction::~GcdPrivateConfirmCodeFunction() { |
| 321 } | 313 } |
| 322 | 314 |
| 323 bool GcdPrivateConfirmCodeFunction::RunAsync() { | 315 bool GcdPrivateConfirmCodeFunction::RunAsync() { |
| 324 return false; | 316 return false; |
| 325 } | 317 } |
| 326 | 318 |
| 327 GcdPrivateStopSetupFunction::GcdPrivateStopSetupFunction() { | 319 GcdPrivateSendMessageFunction::GcdPrivateSendMessageFunction() { |
| 328 } | 320 } |
| 329 | 321 |
| 330 GcdPrivateStopSetupFunction::~GcdPrivateStopSetupFunction() { | 322 GcdPrivateSendMessageFunction::~GcdPrivateSendMessageFunction() { |
| 331 } | 323 } |
| 332 | 324 |
| 333 bool GcdPrivateStopSetupFunction::RunAsync() { | 325 bool GcdPrivateSendMessageFunction::RunAsync() { |
| 334 return false; | 326 return false; |
| 335 } | 327 } |
| 336 | 328 |
| 329 GcdPrivateTerminateSessionFunction::GcdPrivateTerminateSessionFunction() { |
| 330 } |
| 331 |
| 332 GcdPrivateTerminateSessionFunction::~GcdPrivateTerminateSessionFunction() { |
| 333 } |
| 334 |
| 335 bool GcdPrivateTerminateSessionFunction::RunAsync() { |
| 336 return false; |
| 337 } |
| 338 |
| 337 GcdPrivateGetCommandDefinitionsFunction:: | 339 GcdPrivateGetCommandDefinitionsFunction:: |
| 338 GcdPrivateGetCommandDefinitionsFunction() { | 340 GcdPrivateGetCommandDefinitionsFunction() { |
| 339 } | 341 } |
| 340 | 342 |
| 341 GcdPrivateGetCommandDefinitionsFunction:: | 343 GcdPrivateGetCommandDefinitionsFunction:: |
| 342 ~GcdPrivateGetCommandDefinitionsFunction() { | 344 ~GcdPrivateGetCommandDefinitionsFunction() { |
| 343 } | 345 } |
| 344 | 346 |
| 345 bool GcdPrivateGetCommandDefinitionsFunction::RunAsync() { | 347 bool GcdPrivateGetCommandDefinitionsFunction::RunAsync() { |
| 346 return false; | 348 return false; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 382 } |
| 381 | 383 |
| 382 GcdPrivateGetCommandsListFunction::~GcdPrivateGetCommandsListFunction() { | 384 GcdPrivateGetCommandsListFunction::~GcdPrivateGetCommandsListFunction() { |
| 383 } | 385 } |
| 384 | 386 |
| 385 bool GcdPrivateGetCommandsListFunction::RunAsync() { | 387 bool GcdPrivateGetCommandsListFunction::RunAsync() { |
| 386 return false; | 388 return false; |
| 387 } | 389 } |
| 388 | 390 |
| 389 } // namespace extensions | 391 } // namespace extensions |
| OLD | NEW |