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

Side by Side Diff: chrome_frame/turndown_prompt/reshow_state.h

Issue 17153006: Chrome Frame turndown prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
6 #define CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
7
8 #include "base/strings/string16.h"
9 #include "base/time.h"
10
11 namespace turndown_prompt {
12
13 class ReshowState {
14 public:
15 ReshowState(const string16& key_path, const base::TimeDelta& reshow_delta);
16 ~ReshowState();
17
18 bool HasReshowDeltaExpired(const base::Time& current_time) const;
19 void MarkShown(const base::Time& last_shown_time);
20
21 private:
22 string16 key_path_;
23 base::TimeDelta reshow_delta_;
24 };
25
26 } // namespace turndown_prompt
27
28 #endif // CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698