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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_service_client.h

Issue 2751423004: Move NetworkingPrivateDelegate::CryptoVerify to networking_cast_private (Closed)
Patch Set: blocking pool removed Created 3 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 // Windows / Mac NetworkingPrivateApi implementation. This implements 35 // Windows / Mac NetworkingPrivateApi implementation. This implements
36 // NetworkingPrivateDelegate, making WiFiService calls on the worker thead. 36 // NetworkingPrivateDelegate, making WiFiService calls on the worker thead.
37 // It also observes |OnNetworkChanged| notifications and posts them to 37 // It also observes |OnNetworkChanged| notifications and posts them to
38 // WiFiService on the worker thread. Created and called from the UI thread. 38 // WiFiService on the worker thread. Created and called from the UI thread.
39 class NetworkingPrivateServiceClient 39 class NetworkingPrivateServiceClient
40 : public NetworkingPrivateDelegate, 40 : public NetworkingPrivateDelegate,
41 net::NetworkChangeNotifier::NetworkChangeObserver { 41 net::NetworkChangeNotifier::NetworkChangeObserver {
42 public: 42 public:
43 // Takes ownership of |wifi_service| which is accessed and deleted on the 43 // Takes ownership of |wifi_service| which is accessed and deleted on the
44 // worker thread. The deletion task is posted from the destructor. 44 // worker thread. The deletion task is posted from the destructor.
45 // |verify_delegate| is passed to NetworkingPrivateDelegate and may be NULL. 45 explicit NetworkingPrivateServiceClient(
46 NetworkingPrivateServiceClient( 46 std::unique_ptr<wifi::WiFiService> wifi_service);
47 std::unique_ptr<wifi::WiFiService> wifi_service,
48 std::unique_ptr<VerifyDelegate> verify_delegate);
49 47
50 // KeyedService 48 // KeyedService
51 void Shutdown() override; 49 void Shutdown() override;
52 50
53 // NetworkingPrivateDelegate 51 // NetworkingPrivateDelegate
54 void GetProperties(const std::string& guid, 52 void GetProperties(const std::string& guid,
55 const DictionaryCallback& success_callback, 53 const DictionaryCallback& success_callback,
56 const FailureCallback& failure_callback) override; 54 const FailureCallback& failure_callback) override;
57 void GetManagedProperties(const std::string& guid, 55 void GetManagedProperties(const std::string& guid,
58 const DictionaryCallback& success_callback, 56 const DictionaryCallback& success_callback,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 scoped_refptr<base::SequencedTaskRunner> task_runner_; 180 scoped_refptr<base::SequencedTaskRunner> task_runner_;
183 // Use WeakPtrs for callbacks from |wifi_service_|. 181 // Use WeakPtrs for callbacks from |wifi_service_|.
184 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_; 182 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_;
185 183
186 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient); 184 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient);
187 }; 185 };
188 186
189 } // namespace extensions 187 } // namespace extensions
190 188
191 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_ 189 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698