| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_NET_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "chromeos/chromeos_export.h" | 14 #include "chromeos/chromeos_export.h" |
| 15 #include "chromeos/network/network_handler_callbacks.h" | 15 #include "chromeos/network/network_handler_callbacks.h" |
| 16 | 16 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 // Note on callbacks: Because all the functions here are meant to be | 40 // Note on callbacks: Because all the functions here are meant to be |
| 41 // asynchronous, they all take a |callback| of some type, and an | 41 // asynchronous, they all take a |callback| of some type, and an |
| 42 // |error_callback|. When the operation succeeds, |callback| will be called, and | 42 // |error_callback|. When the operation succeeds, |callback| will be called, and |
| 43 // when it doesn't, |error_callback| will be called with information about the | 43 // when it doesn't, |error_callback| will be called with information about the |
| 44 // error, including a symbolic name for the error and often some error message | 44 // error, including a symbolic name for the error and often some error message |
| 45 // that is suitable for logging. None of the error message text is meant for | 45 // that is suitable for logging. None of the error message text is meant for |
| 46 // user consumption. | 46 // user consumption. |
| 47 // | 47 // |
| 48 // TODO(pneubeck): Enforce network policies. | 48 // TODO(pneubeck): Enforce network policies. |
| 49 | 49 |
| 50 class ManagedNetworkConfigurationHandler { | 50 class CHROMEOS_EXPORT ManagedNetworkConfigurationHandler { |
| 51 public: | 51 public: |
| 52 // Initializes the singleton. | 52 // Initializes the singleton. |
| 53 static void Initialize(); | 53 static void Initialize(); |
| 54 | 54 |
| 55 // Returns if the singleton is initialized. | 55 // Returns if the singleton is initialized. |
| 56 static bool IsInitialized(); | 56 static bool IsInitialized(); |
| 57 | 57 |
| 58 // Destroys the singleton. | 58 // Destroys the singleton. |
| 59 static void Shutdown(); | 59 static void Shutdown(); |
| 60 | 60 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 ManagedNetworkConfigurationHandler(); | 113 ManagedNetworkConfigurationHandler(); |
| 114 ~ManagedNetworkConfigurationHandler(); | 114 ~ManagedNetworkConfigurationHandler(); |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandler); | 116 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandler); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace chromeos | 119 } // namespace chromeos |
| 120 | 120 |
| 121 #endif // CHROME_BROWSER_CHROMEOS_NET_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 121 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| OLD | NEW |