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

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

Issue 987963002: Add forgetNetwork to networkingPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to chrome_extensions.js 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 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_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const DictionaryCallback& success_callback, 92 const DictionaryCallback& success_callback,
93 const FailureCallback& failure_callback) = 0; 93 const FailureCallback& failure_callback) = 0;
94 virtual void SetProperties(const std::string& guid, 94 virtual void SetProperties(const std::string& guid,
95 scoped_ptr<base::DictionaryValue> properties, 95 scoped_ptr<base::DictionaryValue> properties,
96 const VoidCallback& success_callback, 96 const VoidCallback& success_callback,
97 const FailureCallback& failure_callback) = 0; 97 const FailureCallback& failure_callback) = 0;
98 virtual void CreateNetwork(bool shared, 98 virtual void CreateNetwork(bool shared,
99 scoped_ptr<base::DictionaryValue> properties, 99 scoped_ptr<base::DictionaryValue> properties,
100 const StringCallback& success_callback, 100 const StringCallback& success_callback,
101 const FailureCallback& failure_callback) = 0; 101 const FailureCallback& failure_callback) = 0;
102 virtual void ForgetNetwork(const std::string& guid,
103 const VoidCallback& success_callback,
104 const FailureCallback& failure_callback) = 0;
102 virtual void GetNetworks(const std::string& network_type, 105 virtual void GetNetworks(const std::string& network_type,
103 bool configured_only, 106 bool configured_only,
104 bool visible_only, 107 bool visible_only,
105 int limit, 108 int limit,
106 const NetworkListCallback& success_callback, 109 const NetworkListCallback& success_callback,
107 const FailureCallback& failure_callback) = 0; 110 const FailureCallback& failure_callback) = 0;
108 virtual void StartConnect(const std::string& guid, 111 virtual void StartConnect(const std::string& guid,
109 const VoidCallback& success_callback, 112 const VoidCallback& success_callback,
110 const FailureCallback& failure_callback) = 0; 113 const FailureCallback& failure_callback) = 0;
111 virtual void StartDisconnect(const std::string& guid, 114 virtual void StartDisconnect(const std::string& guid,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 private: 165 private:
163 // Interface for Verify* methods. May be NULL. 166 // Interface for Verify* methods. May be NULL.
164 scoped_ptr<VerifyDelegate> verify_delegate_; 167 scoped_ptr<VerifyDelegate> verify_delegate_;
165 168
166 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); 169 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate);
167 }; 170 };
168 171
169 } // namespace extensions 172 } // namespace extensions
170 173
171 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_ 174 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698