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

Side by Side Diff: chrome/browser/extensions/api/networking_private/wifi_passphrase_getter_mac.cc

Issue 102993002: Implement Networking Private API VerifyAndEncryptCredentials method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement GetWiFiPasswordFromSystem on Mac. Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698