| 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_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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/linked_ptr.h" | |
| 15 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 16 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 17 #include "components/keyed_service/core/keyed_service.h" | 16 #include "components/keyed_service/core/keyed_service.h" |
| 18 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" | 17 #include "extensions/browser/api/networking_private/networking_private_delegate.
h" |
| 19 | 18 |
| 20 namespace dbus { | 19 namespace dbus { |
| 21 class Bus; | 20 class Bus; |
| 22 class ObjectPath; | 21 class ObjectPath; |
| 23 class ObjectProxy; | 22 class ObjectProxy; |
| 24 class Response; | 23 class Response; |
| 25 }; | 24 }; |
| 26 | 25 |
| 27 namespace extensions { | 26 namespace extensions { |
| 28 | 27 |
| 29 // Linux NetworkingPrivateDelegate implementation. | 28 // Linux NetworkingPrivateDelegate implementation. |
| 30 class NetworkingPrivateLinux : public NetworkingPrivateDelegate { | 29 class NetworkingPrivateLinux : public NetworkingPrivateDelegate { |
| 31 public: | 30 public: |
| 32 typedef std::map<base::string16, linked_ptr<base::DictionaryValue>> | 31 using NetworkMap = |
| 33 NetworkMap; | 32 std::map<base::string16, std::unique_ptr<base::DictionaryValue>>; |
| 34 | 33 |
| 35 typedef std::vector<std::string> GuidList; | 34 typedef std::vector<std::string> GuidList; |
| 36 | 35 |
| 37 explicit NetworkingPrivateLinux( | 36 explicit NetworkingPrivateLinux( |
| 38 std::unique_ptr<VerifyDelegate> verify_delegate); | 37 std::unique_ptr<VerifyDelegate> verify_delegate); |
| 39 | 38 |
| 40 // NetworkingPrivateDelegate | 39 // NetworkingPrivateDelegate |
| 41 void GetProperties(const std::string& guid, | 40 void GetProperties(const std::string& guid, |
| 42 const DictionaryCallback& success_callback, | 41 const DictionaryCallback& success_callback, |
| 43 const FailureCallback& failure_callback) override; | 42 const FailureCallback& failure_callback) override; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Observers to Network Events. | 268 // Observers to Network Events. |
| 270 base::ObserverList<NetworkingPrivateDelegateObserver> | 269 base::ObserverList<NetworkingPrivateDelegateObserver> |
| 271 network_events_observers_; | 270 network_events_observers_; |
| 272 | 271 |
| 273 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux); | 272 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux); |
| 274 }; | 273 }; |
| 275 | 274 |
| 276 } // namespace extensions | 275 } // namespace extensions |
| 277 | 276 |
| 278 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ | 277 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ |
| OLD | NEW |