[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / ash / system / session_length_limit / session_length_limit_observer.h
blob52be2c4e9f91fb87b4aa01e0700928fcf3dd3f83
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
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_SESSION_LENGTH_LIMIT_SESSION_LENGTH_LIMIT_OBSERVER_H_
6 #define ASH_SYSTEM_SESSION_LENGTH_LIMIT_SESSION_LENGTH_LIMIT_OBSERVER_H_
8 #include "base/time.h"
10 namespace ash {
12 // Observer for the session length limit.
13 class SessionLengthLimitObserver {
14 public:
15 virtual ~SessionLengthLimitObserver() {}
17 // Called when the session start time is updated.
18 virtual void OnSessionStartTimeChanged(
19 const base::Time& session_start_time) = 0;
21 // Called when the session length limit is updated.
22 virtual void OnSessionLengthLimitChanged(const base::TimeDelta& limit) = 0;
25 } // namespace ash
27 #endif // ASH_SYSTEM_SESSION_LENGTH_LIMIT_SESSION_LENGTH_LIMIT_OBSERVER_H_