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

Side by Side Diff: ash/common/system/networking_config_delegate.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_
6 #define ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "ash/ash_export.h"
12 #include "base/macros.h"
13
14 namespace ash {
15
16 // This delegate allows the UI code in ash, e.g. |NetworkStateListDetailedView|,
17 // to access the |NetworkingConfigService| in order to determine whether the
18 // configuration of a network identified by its |guid| is controlled by
19 // an extension.
20 // TODO(crbug.com/651157): Eliminate this delegate. Information about extension
21 // controlled networks should be provided by a mojo service that caches data at
22 // the NetworkState level.
23 class NetworkingConfigDelegate {
24 public:
25 // A struct that provides information about the extension controlling the
26 // configuration of a network.
27 struct ASH_EXPORT ExtensionInfo {
28 ExtensionInfo(const std::string& id, const std::string& name);
29 ~ExtensionInfo();
30 std::string extension_id;
31 std::string extension_name;
32 };
33
34 virtual ~NetworkingConfigDelegate() {}
35
36 // Returns information about the extension registered to control configuration
37 // of the network |guid|. Returns null if no extension is registered.
38 virtual std::unique_ptr<const ExtensionInfo> LookUpExtensionForNetwork(
39 const std::string& guid) = 0;
40
41 private:
42 DISALLOW_ASSIGN(NetworkingConfigDelegate);
43 };
44
45 } // namespace ash
46
47 #endif // ASH_COMMON_SYSTEM_NETWORKING_CONFIG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/system/locale/locale_notification_controller.cc ('k') | ash/common/system/networking_config_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698