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

Side by Side Diff: content/public/browser/navigation_entry.h

Issue 11054025: [Sync] Add HTTP status codes to NavigationEntry and TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // page is reloaded.) 170 // page is reloaded.)
171 // 171 //
172 // If GetTimestamp() returns a null time, that means that either: 172 // If GetTimestamp() returns a null time, that means that either:
173 // 173 //
174 // - this navigation hasn't completed yet; 174 // - this navigation hasn't completed yet;
175 // - this navigation was restored and for some reason the 175 // - this navigation was restored and for some reason the
176 // timestamp wasn't available; 176 // timestamp wasn't available;
177 // - or this navigation was copied from a foreign session. 177 // - or this navigation was copied from a foreign session.
178 virtual void SetTimestamp(base::Time timestamp) = 0; 178 virtual void SetTimestamp(base::Time timestamp) = 0;
179 virtual base::Time GetTimestamp() const = 0; 179 virtual base::Time GetTimestamp() const = 0;
180
181 // The status code of the last known successful navigation. If
182 // GetHttpStatusCode() returns 0 that means that either:
183 //
184 // - this navigation hasn't completed yet;
185 // - a response wasn't received;
186 // - or this navigation was restored and for some reason the
187 // status code wasn't available.
188 virtual void SetHttpStatusCode(int http_status_code) = 0;
189 virtual int GetHttpStatusCode() const = 0;
180 }; 190 };
181 191
182 } // namespace content 192 } // namespace content
183 193
184 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 194 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698