| 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_CHROMEOS_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" | 13 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class DictionaryValue; | 16 class DictionaryValue; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class BrowserContext; | 20 class BrowserContext; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace extensions { | 23 namespace extensions { |
| 24 | 24 |
| 25 // Chrome OS NetworkingPrivateDelegate implementation. | 25 // Chrome OS NetworkingPrivateDelegate implementation. |
| 26 | 26 |
| 27 class NetworkingPrivateChromeOS : public NetworkingPrivateDelegate { | 27 class NetworkingPrivateChromeOS : public NetworkingPrivateDelegate { |
| 28 public: | 28 public: |
| 29 // |verify_delegate| is passed to NetworkingPrivateDelegate and may be NULL. | 29 // |verify_delegate| is passed to NetworkingPrivateDelegate and may be NULL. |
| 30 NetworkingPrivateChromeOS(content::BrowserContext* browser_context, | 30 explicit NetworkingPrivateChromeOS(content::BrowserContext* browser_context); |
| 31 std::unique_ptr<VerifyDelegate> verify_delegate); | |
| 32 ~NetworkingPrivateChromeOS() override; | 31 ~NetworkingPrivateChromeOS() override; |
| 33 | 32 |
| 34 // NetworkingPrivateApi | 33 // NetworkingPrivateApi |
| 35 void GetProperties(const std::string& guid, | 34 void GetProperties(const std::string& guid, |
| 36 const DictionaryCallback& success_callback, | 35 const DictionaryCallback& success_callback, |
| 37 const FailureCallback& failure_callback) override; | 36 const FailureCallback& failure_callback) override; |
| 38 void GetManagedProperties(const std::string& guid, | 37 void GetManagedProperties(const std::string& guid, |
| 39 const DictionaryCallback& success_callback, | 38 const DictionaryCallback& success_callback, |
| 40 const FailureCallback& failure_callback) override; | 39 const FailureCallback& failure_callback) override; |
| 41 void GetState(const std::string& guid, | 40 void GetState(const std::string& guid, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 127 |
| 129 content::BrowserContext* browser_context_; | 128 content::BrowserContext* browser_context_; |
| 130 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; | 129 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; |
| 131 | 130 |
| 132 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); | 131 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } // namespace extensions | 134 } // namespace extensions |
| 136 | 135 |
| 137 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ | 136 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ |
| OLD | NEW |