OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/api/networking_private/wifi_passphrase_gette
r.h" |
| 6 |
| 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_handle.h" |
| 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "chrome/common/chrome_utility_messages.h" |
| 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/browser/utility_process_host.h" |
| 14 |
| 15 using content::BrowserThread; |
| 16 using content::UtilityProcessHost; |
| 17 |
| 18 namespace extensions { |
| 19 |
| 20 class WiFiPassphraseGetterMac : public WiFiPassphraseGetter { |
| 21 public: |
| 22 typedef base::Callback<void(const std::string& passphrase, |
| 23 const std::string& error)> PassphraseCallback; |
| 24 |
| 25 WiFiPassphraseGetterMac(const PassphraseCallback& callback, |
| 26 int32 callback_id, |
| 27 const std::string& network_guid, |
| 28 const std::string& public_key); |
| 29 |
| 30 |
| 31 // Start getting passphrase. |
| 32 virtual void Start() OVERRIDE; |
| 33 |
| 34 private: |
| 35 |
| 36 virtual ~WiFiPassphraseGetterMac(); |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(WiFiPassphraseGetterMac); |
| 39 }; |
| 40 |
| 41 WiFiPassphraseGetterMac::WiFiPassphraseGetterMac( |
| 42 const PassphraseCallback& callback, |
| 43 int32 callback_id, |
| 44 const std::string& network_guid, |
| 45 const std::string& public_key) { |
| 46 } |
| 47 |
| 48 void WiFiPassphraseGetterMac::Start() { |
| 49 } |
| 50 |
| 51 WiFiPassphraseGetterMac::~WiFiPassphraseGetterMac() { |
| 52 } |
| 53 |
| 54 WiFiPassphraseGetter* WiFiPassphraseGetter::Create( |
| 55 const PassphraseCallback& callback, |
| 56 int32 callback_id, |
| 57 const std::string& network_guid, |
| 58 const std::string& public_key) { |
| 59 return new WiFiPassphraseGetterMac(callback, |
| 60 callback_id, |
| 61 network_guid, |
| 62 public_key); |
| 63 } |
| 64 |
| 65 } // namespace extensions |
OLD | NEW |