network_connect.h revision 7dbb3d5cf0c15f500944d211057644d6a2f37371
1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// found in the LICENSE file.
4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H
6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H
7868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#include <string>
9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#include "ash/ash_export.h"
117dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#include "base/strings/string16.h"
12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace ash {
14868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace network_connect {
15868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
16868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Request a network connection and handle any errors and notifications.
17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)ASH_EXPORT void ConnectToNetwork(const std::string& service_path);
18868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
197dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Returns the localized string for shill error string |error|.
207dbb3d5cf0c15f500944d211057644d6a2f37371Ben MurdochASH_EXPORT base::string16 ErrorString(const std::string& error);
217dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
22868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)}  // network_connect
23868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)}  // ash
24868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
25868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#endif  // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H
26