| Index: chrome/browser/extensions/api/networking_private/wifi_passphrase_getter_mac.cc
|
| diff --git a/chrome/browser/extensions/api/networking_private/wifi_passphrase_getter_mac.cc b/chrome/browser/extensions/api/networking_private/wifi_passphrase_getter_mac.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..82766415d37766ac2e76925985e8adab90cae8c0
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/networking_private/wifi_passphrase_getter_mac.cc
|
| @@ -0,0 +1,65 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/extensions/api/networking_private/wifi_passphrase_getter.h"
|
| +
|
| +#include "base/bind.h"
|
| +#include "base/memory/scoped_handle.h"
|
| +#include "base/message_loop/message_loop.h"
|
| +#include "base/threading/sequenced_worker_pool.h"
|
| +#include "chrome/common/chrome_utility_messages.h"
|
| +#include "content/public/browser/browser_thread.h"
|
| +#include "content/public/browser/utility_process_host.h"
|
| +
|
| +using content::BrowserThread;
|
| +using content::UtilityProcessHost;
|
| +
|
| +namespace extensions {
|
| +
|
| +class WiFiPassphraseGetterMac : public WiFiPassphraseGetter {
|
| + public:
|
| + typedef base::Callback<void(const std::string& passphrase,
|
| + const std::string& error)> PassphraseCallback;
|
| +
|
| + WiFiPassphraseGetterMac(const PassphraseCallback& callback,
|
| + int32 callback_id,
|
| + const std::string& network_guid,
|
| + const std::string& public_key);
|
| +
|
| +
|
| + // Start getting passphrase.
|
| + virtual void Start() OVERRIDE;
|
| +
|
| + private:
|
| +
|
| + virtual ~WiFiPassphraseGetterMac();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WiFiPassphraseGetterMac);
|
| +};
|
| +
|
| +WiFiPassphraseGetterMac::WiFiPassphraseGetterMac(
|
| + const PassphraseCallback& callback,
|
| + int32 callback_id,
|
| + const std::string& network_guid,
|
| + const std::string& public_key) {
|
| +}
|
| +
|
| +void WiFiPassphraseGetterMac::Start() {
|
| +}
|
| +
|
| +WiFiPassphraseGetterMac::~WiFiPassphraseGetterMac() {
|
| +}
|
| +
|
| +WiFiPassphraseGetter* WiFiPassphraseGetter::Create(
|
| + const PassphraseCallback& callback,
|
| + int32 callback_id,
|
| + const std::string& network_guid,
|
| + const std::string& public_key) {
|
| + return new WiFiPassphraseGetterMac(callback,
|
| + callback_id,
|
| + network_guid,
|
| + public_key);
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|