| OLD | NEW |
| 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 Loading... |
| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 private: | 166 private: |
| 167 // Interface for Verify* methods. May be NULL. | 167 // Interface for Verify* methods. May be NULL. |
| 168 scoped_ptr<VerifyDelegate> verify_delegate_; | 168 scoped_ptr<VerifyDelegate> verify_delegate_; |
| 169 | 169 |
| 170 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); | 170 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateDelegate); |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace extensions | 173 } // namespace extensions |
| 174 | 174 |
| 175 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE
_H_ | 175 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE
_H_ |
| OLD | NEW |