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

Unified 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: robert comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/turndown_prompt/reshow_state.h
diff --git a/chrome_frame/turndown_prompt/reshow_state.h b/chrome_frame/turndown_prompt/reshow_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b56e573f8ee1cb4c2986552c0be8e24d4c142ac
--- /dev/null
+++ b/chrome_frame/turndown_prompt/reshow_state.h
@@ -0,0 +1,28 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
+#define CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_
+
+#include "base/strings/string16.h"
+#include "base/time.h"
+
+namespace turndown_prompt {
+
+class ReshowState {
+ public:
+ ReshowState(const string16& key_path, const base::TimeDelta& reshow_delta);
+ ~ReshowState();
+
+ bool HasReshowDeltaExpired(const base::Time& current_time) const;
+ void MarkShown(const base::Time& last_shown_time);
+
+ private:
+ string16 key_path_;
+ base::TimeDelta reshow_delta_;
+};
+
+} // namespace turndown_prompt
+
+#endif // CHROME_FRAME_TURNDOWN_PROMPT_RESHOW_STATE_H_

Powered by Google App Engine
This is Rietveld 408576698