OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // page is reloaded.) | 97 // page is reloaded.) |
98 // | 98 // |
99 // If GetTimestamp() returns a null time, that means that either: | 99 // If GetTimestamp() returns a null time, that means that either: |
100 // | 100 // |
101 // - this navigation hasn't completed yet; | 101 // - this navigation hasn't completed yet; |
102 // - this navigation was restored and for some reason the | 102 // - this navigation was restored and for some reason the |
103 // timestamp wasn't available; | 103 // timestamp wasn't available; |
104 // - or this navigation was copied from a foreign session. | 104 // - or this navigation was copied from a foreign session. |
105 virtual void SetTimestamp(base::Time timestamp) = 0; | 105 virtual void SetTimestamp(base::Time timestamp) = 0; |
106 virtual base::Time GetTimestamp() const = 0; | 106 virtual base::Time GetTimestamp() const = 0; |
| 107 |
| 108 // |true| if this item contains unsafe resources and will be removed. This |
| 109 // property doesn't get serialized. |
| 110 virtual void SetUnsafe(bool is_unsafe) = 0; |
| 111 virtual bool IsUnsafe() const = 0; |
107 }; | 112 }; |
108 | 113 |
109 } // namespace web | 114 } // namespace web |
110 | 115 |
111 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 116 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
OLD | NEW |