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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 984863005: Add ash::VPNDelegate and Chrome OS implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ~UpdateInfo(); 92 ~UpdateInfo();
93 93
94 UpdateSeverity severity; 94 UpdateSeverity severity;
95 bool update_required; 95 bool update_required;
96 bool factory_reset_required; 96 bool factory_reset_required;
97 }; 97 };
98 98
99 using IMEInfoList = std::vector<IMEInfo>; 99 using IMEInfoList = std::vector<IMEInfo>;
100 100
101 class NetworkingConfigDelegate; 101 class NetworkingConfigDelegate;
102 class VPNDelegate;
102 103
103 using RebootOnShutdownCallback = base::Callback<void(bool)>; 104 using RebootOnShutdownCallback = base::Callback<void(bool)>;
104 105
105 namespace tray { 106 namespace tray {
106 class UserAccountsDelegate; 107 class UserAccountsDelegate;
107 } // namespace tray 108 } // namespace tray
108 109
109 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the 110 // SystemTrayDelegate is intended for delegating tasks in the System Tray to the
110 // application (e.g. Chrome). These tasks should be limited to application 111 // application (e.g. Chrome). These tasks should be limited to application
111 // (browser) specific tasks. For non application specific tasks, where possible, 112 // (browser) specific tasks. For non application specific tasks, where possible,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // the |DeviceRebootOnShutdown| policy changes. If this policy is set to 326 // the |DeviceRebootOnShutdown| policy changes. If this policy is set to
326 // true, a device cannot be shut down anymore but only rebooted. 327 // true, a device cannot be shut down anymore but only rebooted.
327 virtual void AddShutdownPolicyObserver(ShutdownPolicyObserver* observer); 328 virtual void AddShutdownPolicyObserver(ShutdownPolicyObserver* observer);
328 329
329 virtual void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer); 330 virtual void RemoveShutdownPolicyObserver(ShutdownPolicyObserver* observer);
330 331
331 // Determines whether the device is automatically rebooted when shut down as 332 // Determines whether the device is automatically rebooted when shut down as
332 // specified by the device policy |DeviceRebootOnShutdown|. This function 333 // specified by the device policy |DeviceRebootOnShutdown|. This function
333 // asynchronously calls |callback| once a trusted policy becomes available. 334 // asynchronously calls |callback| once a trusted policy becomes available.
334 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); 335 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback);
336
337 // Returns VPNDelegate. May return nullptr.
338 virtual VPNDelegate* GetVPNDelegate() const;
335 }; 339 };
336 340
337 } // namespace ash 341 } // namespace ash
338 342
339 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 343 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698