| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBHISTORYITEM_H__ | 5 #ifndef WEBKIT_GLUE_WEBHISTORYITEM_H_ |
| 6 #define WEBKIT_GLUE_WEBHISTORYITEM_H__ | 6 #define WEBKIT_GLUE_WEBHISTORYITEM_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/ref_counted.h" | |
| 12 #include "webkit/glue/weburlrequest.h" // for WebRequest::ExtraData | 8 #include "webkit/glue/weburlrequest.h" // for WebRequest::ExtraData |
| 13 | 9 |
| 14 class GURL; | 10 class GURL; |
| 15 | 11 |
| 16 class WebHistoryItem : public base::RefCounted<WebHistoryItem> { | 12 class WebHistoryItem : public base::RefCounted<WebHistoryItem> { |
| 17 public: | 13 public: |
| 18 // Create a new history item. | 14 // Create a new history item. |
| 19 static WebHistoryItem* Create(const GURL& url, | 15 static WebHistoryItem* Create(const GURL& url, |
| 20 const std::wstring& title, | 16 const std::wstring& title, |
| 21 const std::string& history_state, | 17 const std::string& history_state, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 // Returns the string representation of the history state for this entry. | 29 // Returns the string representation of the history state for this entry. |
| 34 virtual const std::string& GetHistoryState() const = 0; | 30 virtual const std::string& GetHistoryState() const = 0; |
| 35 | 31 |
| 36 // Returns any ExtraData associated with this history entry. | 32 // Returns any ExtraData associated with this history entry. |
| 37 virtual WebRequest::ExtraData* GetExtraData() const = 0; | 33 virtual WebRequest::ExtraData* GetExtraData() const = 0; |
| 38 | 34 |
| 39 private: | 35 private: |
| 40 DISALLOW_EVIL_CONSTRUCTORS(WebHistoryItem); | 36 DISALLOW_EVIL_CONSTRUCTORS(WebHistoryItem); |
| 41 }; | 37 }; |
| 42 | 38 |
| 43 #endif // #ifndef WEBKIT_GLUE_WEBHISTORYITEM_H__ | 39 #endif // #ifndef WEBKIT_GLUE_WEBHISTORYITEM_H_ |
| 44 | |
| OLD | NEW |