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

Unified Diff: chrome/browser/chromeos/cros/network_ip_config.h

Issue 11756002: Move cros_network_functions.cc to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang fixes Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/network_ip_config.h
diff --git a/chrome/browser/chromeos/cros/network_ip_config.h b/chrome/browser/chromeos/cros/network_ip_config.h
deleted file mode 100644
index d4cea85691535601753983782466e4d45a4be3f7..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/cros/network_ip_config.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_IP_CONFIG_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_IP_CONFIG_H_
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-
-namespace chromeos {
-
-// ipconfig types (see flimflam/files/doc/ipconfig-api.txt)
-enum IPConfigType {
- IPCONFIG_TYPE_UNKNOWN,
- IPCONFIG_TYPE_IPV4,
- IPCONFIG_TYPE_IPV6,
- IPCONFIG_TYPE_DHCP,
- IPCONFIG_TYPE_BOOTP, // Not Used.
- IPCONFIG_TYPE_ZEROCONF,
- IPCONFIG_TYPE_DHCP6,
- IPCONFIG_TYPE_PPP,
-};
-
-// IP Configuration.
-struct NetworkIPConfig {
- NetworkIPConfig(const std::string& device_path, IPConfigType type,
- const std::string& address, const std::string& netmask,
- const std::string& gateway, const std::string& name_servers);
- ~NetworkIPConfig();
-
- std::string ToString() const;
-
- std::string device_path; // This looks like "/device/0011aa22bb33"
- IPConfigType type;
- std::string address;
- std::string netmask;
- std::string gateway;
- std::string name_servers;
-};
-
-typedef std::vector<NetworkIPConfig> NetworkIPConfigVector;
-
-// Used to return the list of IP configs and hardware address from an
-// asynchronous call to Shill. The hardware address is usually a MAC address
-// like "0011AA22BB33". |hardware_address| will be an empty string, if no
-// hardware address is found.
-typedef base::Callback<void(const NetworkIPConfigVector& ip_configs,
- const std::string& hardware_address)>
- NetworkGetIPConfigsCallback;
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_IP_CONFIG_H_
« no previous file with comments | « chrome/browser/chromeos/cros/cros_network_functions_unittest.cc ('k') | chrome/browser/chromeos/cros/network_ip_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698