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

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

Issue 1038873004: Convert networkingPrivate to use IDL format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_470282_onc_cellular_technology
Patch Set: Address feedback Created 5 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_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 10 matching lines...) Expand all
21 class NetworkingPrivateDelegateObserver; 21 class NetworkingPrivateDelegateObserver;
22 22
23 namespace core_api { 23 namespace core_api {
24 namespace networking_private { 24 namespace networking_private {
25 struct VerificationProperties; 25 struct VerificationProperties;
26 } // networking_private 26 } // networking_private
27 } // core_api 27 } // core_api
28 28
29 // Base class for platform dependent networkingPrivate API implementations. 29 // Base class for platform dependent networkingPrivate API implementations.
30 // All inputs and results for this class use ONC values. See 30 // All inputs and results for this class use ONC values. See
31 // networking_private.json for descriptions of the expected inputs and results. 31 // networking_private.idl for descriptions of the expected inputs and results.
32 class NetworkingPrivateDelegate : public KeyedService { 32 class NetworkingPrivateDelegate : public KeyedService {
33 public: 33 public:
34 typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> 34 typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)>
35 DictionaryCallback; 35 DictionaryCallback;
36 typedef base::Callback<void()> VoidCallback; 36 typedef base::Callback<void()> VoidCallback;
37 typedef base::Callback<void(bool)> BoolCallback; 37 typedef base::Callback<void(bool)> BoolCallback;
38 typedef base::Callback<void(const std::string&)> StringCallback; 38 typedef base::Callback<void(const std::string&)> StringCallback;
39 typedef base::Callback<void(scoped_ptr<base::ListValue>)> NetworkListCallback; 39 typedef base::Callback<void(scoped_ptr<base::ListValue>)> NetworkListCallback;
40 typedef base::Callback<void(const std::string&)> FailureCallback; 40 typedef base::Callback<void(const std::string&)> FailureCallback;
41 typedef core_api::networking_private::VerificationProperties 41 typedef core_api::networking_private::VerificationProperties
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 private: 169 private:
170 // Interface for Verify* methods. May be NULL. 170 // Interface for Verify* methods. May be NULL.
171 scoped_ptr<VerifyDelegate> verify_delegate_; 171 scoped_ptr<VerifyDelegate> verify_delegate_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); 173 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate);
174 }; 174 };
175 175
176 } // namespace extensions 176 } // namespace extensions
177 177
178 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_ 178 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE _H_
OLDNEW
« no previous file with comments | « extensions/browser/api/networking_private/networking_private_api.cc ('k') | extensions/common/api/networking_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698