diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 06:21:01 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 06:21:01 +0000 |
commit | 4781156a2c2dca5839906c18f7eedf0fe808fb23 (patch) | |
tree | ebc644136085edd95ee30b72dcade4654257dce4 /webkit/glue/webhistoryitem_impl.h | |
parent | 876b0c451041fad7be429632de5066e4e30bf625 (diff) | |
download | chromium_src-4781156a2c2dca5839906c18f7eedf0fe808fb23.zip chromium_src-4781156a2c2dca5839906c18f7eedf0fe808fb23.tar.gz chromium_src-4781156a2c2dca5839906c18f7eedf0fe808fb23.tar.bz2 |
Revert r15940 again. Unexpected layout test failures :(
TBR=mpcomplete
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webhistoryitem_impl.h')
-rw-r--r-- | webkit/glue/webhistoryitem_impl.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/webkit/glue/webhistoryitem_impl.h b/webkit/glue/webhistoryitem_impl.h new file mode 100644 index 0000000..b28fb91 --- /dev/null +++ b/webkit/glue/webhistoryitem_impl.h @@ -0,0 +1,47 @@ +// Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBHISTORYITEM_IMPL_H_ +#define WEBKIT_GLUE_WEBHISTORYITEM_IMPL_H_ + +#include "webkit/glue/webhistoryitem.h" +#include "googleurl/src/gurl.h" + +#include "RefPtr.h" + +namespace WebCore { + class HistoryItem; +} + +class WebHistoryItemImpl : public WebHistoryItem { + public: + WebHistoryItemImpl(const GURL& url, + const std::wstring& title, + const std::string& history_state, + WebRequest::ExtraData* extra_data); + virtual ~WebHistoryItemImpl(); + + // WebHistoryItem + virtual const GURL& GetURL() const; + virtual const std::wstring& GetTitle() const; + virtual const std::string& GetHistoryState() const; + virtual WebRequest::ExtraData* GetExtraData() const; + + // WebHistoryItemImpl + // Returns a WebCore::HistoryItem based on the history_state. This is + // lazily-created and cached. + WebCore::HistoryItem* GetHistoryItem() const; + + protected: + GURL url_; + std::wstring title_; + std::string history_state_; + mutable RefPtr<WebCore::HistoryItem> history_item_; + scoped_refptr<WebRequest::ExtraData> extra_data_; + + private: + DISALLOW_COPY_AND_ASSIGN(WebHistoryItemImpl); +}; + +#endif // #ifndef WEBKIT_GLUE_WEBHISTORYITEM_IMPL_H_ |