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

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

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (Closed)
Patch Set: . Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 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 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_LINUX_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void SetProperties(const std::string& guid, 48 void SetProperties(const std::string& guid,
49 std::unique_ptr<base::DictionaryValue> properties, 49 std::unique_ptr<base::DictionaryValue> properties,
50 bool allow_set_shared_config, 50 bool allow_set_shared_config,
51 const VoidCallback& success_callback, 51 const VoidCallback& success_callback,
52 const FailureCallback& failure_callback) override; 52 const FailureCallback& failure_callback) override;
53 void CreateNetwork(bool shared, 53 void CreateNetwork(bool shared,
54 std::unique_ptr<base::DictionaryValue> properties, 54 std::unique_ptr<base::DictionaryValue> properties,
55 const StringCallback& success_callback, 55 const StringCallback& success_callback,
56 const FailureCallback& failure_callback) override; 56 const FailureCallback& failure_callback) override;
57 void ForgetNetwork(const std::string& guid, 57 void ForgetNetwork(const std::string& guid,
58 bool allow_forget_shared_config,
58 const VoidCallback& success_callback, 59 const VoidCallback& success_callback,
59 const FailureCallback& failure_callback) override; 60 const FailureCallback& failure_callback) override;
60 void GetNetworks(const std::string& network_type, 61 void GetNetworks(const std::string& network_type,
61 bool configured_only, 62 bool configured_only,
62 bool visible_only, 63 bool visible_only,
63 int limit, 64 int limit,
64 const NetworkListCallback& success_callback, 65 const NetworkListCallback& success_callback,
65 const FailureCallback& failure_callback) override; 66 const FailureCallback& failure_callback) override;
66 void StartConnect(const std::string& guid, 67 void StartConnect(const std::string& guid,
67 const VoidCallback& success_callback, 68 const VoidCallback& success_callback,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Observers to Network Events. 269 // Observers to Network Events.
269 base::ObserverList<NetworkingPrivateDelegateObserver> 270 base::ObserverList<NetworkingPrivateDelegateObserver>
270 network_events_observers_; 271 network_events_observers_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux); 273 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux);
273 }; 274 };
274 275
275 } // namespace extensions 276 } // namespace extensions
276 277
277 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ 278 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698