summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/ash/networking_config_delegate_chromeos.h
blob: 1e71a0624d7493fd8b3ca0a942115a628a889dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2015 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_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_
#define CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_

#include <string>

#include "ash/networking_config_delegate.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "content/public/browser/browser_context.h"

namespace chromeos {

// A class which allows the ash tray to retrieve extension provided networking
// configuration through the networking config service.
class NetworkingConfigDelegateChromeos : public ash::NetworkingConfigDelegate {
 public:
  NetworkingConfigDelegateChromeos();
  ~NetworkingConfigDelegateChromeos() override;

  scoped_ptr<const ExtensionInfo> LookUpExtensionForNetwork(
      const std::string& service_path) override;

 private:
  std::string LookUpExtensionName(content::BrowserContext* context,
                                  std::string extension_id) const;

  DISALLOW_COPY_AND_ASSIGN(NetworkingConfigDelegateChromeos);
};

}  // namespace chromeos

#endif  // CHROME_BROWSER_UI_ASH_NETWORKING_CONFIG_DELEGATE_CHROMEOS_H_