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

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

Issue 987963002: Add forgetNetwork to networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + feedback Created 5 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const DictionaryCallback& success_callback, 58 const DictionaryCallback& success_callback,
59 const FailureCallback& failure_callback) override; 59 const FailureCallback& failure_callback) override;
60 void SetProperties(const std::string& guid, 60 void SetProperties(const std::string& guid,
61 scoped_ptr<base::DictionaryValue> properties_dict, 61 scoped_ptr<base::DictionaryValue> properties_dict,
62 const VoidCallback& success_callback, 62 const VoidCallback& success_callback,
63 const FailureCallback& failure_callback) override; 63 const FailureCallback& failure_callback) override;
64 void CreateNetwork(bool shared, 64 void CreateNetwork(bool shared,
65 scoped_ptr<base::DictionaryValue> properties_dict, 65 scoped_ptr<base::DictionaryValue> properties_dict,
66 const StringCallback& success_callback, 66 const StringCallback& success_callback,
67 const FailureCallback& failure_callback) override; 67 const FailureCallback& failure_callback) override;
68 void ForgetNetwork(const std::string& guid,
69 const VoidCallback& success_callback,
70 const FailureCallback& failure_callback) override;
68 void GetNetworks(const std::string& network_type, 71 void GetNetworks(const std::string& network_type,
69 bool configured_only, 72 bool configured_only,
70 bool visible_only, 73 bool visible_only,
71 int limit, 74 int limit,
72 const NetworkListCallback& success_callback, 75 const NetworkListCallback& success_callback,
73 const FailureCallback& failure_callback) override; 76 const FailureCallback& failure_callback) override;
74 void StartConnect(const std::string& guid, 77 void StartConnect(const std::string& guid,
75 const VoidCallback& success_callback, 78 const VoidCallback& success_callback,
76 const FailureCallback& failure_callback) override; 79 const FailureCallback& failure_callback) override;
77 void StartDisconnect(const std::string& guid, 80 void StartDisconnect(const std::string& guid,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 scoped_refptr<base::SequencedTaskRunner> task_runner_; 164 scoped_refptr<base::SequencedTaskRunner> task_runner_;
162 // Use WeakPtrs for callbacks from |wifi_service_|. 165 // Use WeakPtrs for callbacks from |wifi_service_|.
163 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_; 166 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_;
164 167
165 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient); 168 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient);
166 }; 169 };
167 170
168 } // namespace extensions 171 } // namespace extensions
169 172
170 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_ 173 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698