Make sure account reconcilor only works for connected profiles.
[chromium-blink-merge.git] / chrome_frame / turndown_prompt / reshow_state.h
bloba3989a19c57ccbf2509c15aa7f5d7dd48cd8ef2d
1 // Copyright 2013 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 CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
6 #define CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
8 #include "base/time/time.h"
10 namespace turndown_prompt {
12 class ReshowState {
13 public:
14 explicit ReshowState(const base::TimeDelta& reshow_delta);
15 ~ReshowState();
17 bool HasReshowDeltaExpired(const base::Time& current_time) const;
18 void MarkShown(const base::Time& last_shown_time);
20 private:
21 base::TimeDelta reshow_delta_;
24 } // namespace turndown_prompt
26 #endif // CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_