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

Side by Side Diff: webkit/api/public/WebHistoryItem.h

Issue 225012: Store non-standard HTTP headers in history Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « no previous file | webkit/api/src/WebHistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 35
36 #if WEBKIT_IMPLEMENTATION 36 #if WEBKIT_IMPLEMENTATION
37 namespace WebCore { class HistoryItem; } 37 namespace WebCore { class HistoryItem; }
38 namespace WTF { template <typename T> class PassRefPtr; } 38 namespace WTF { template <typename T> class PassRefPtr; }
39 #endif 39 #endif
40 40
41 namespace WebKit { 41 namespace WebKit {
42 class WebHistoryItemPrivate; 42 class WebHistoryItemPrivate;
43 class WebHTTPBody; 43 class WebHTTPBody;
44 class WebHTTPHeaderVisitor;
44 class WebString; 45 class WebString;
45 struct WebPoint; 46 struct WebPoint;
46 template <typename T> class WebVector; 47 template <typename T> class WebVector;
47 48
48 // Represents a frame-level navigation entry in session history. A 49 // Represents a frame-level navigation entry in session history. A
49 // WebHistoryItem is a node in a tree. 50 // WebHistoryItem is a node in a tree.
50 // 51 //
51 // Copying a WebHistoryItem is cheap. 52 // Copying a WebHistoryItem is cheap.
52 // 53 //
53 class WebHistoryItem { 54 class WebHistoryItem {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 100
100 WEBKIT_API WebVector<WebString> documentState() const; 101 WEBKIT_API WebVector<WebString> documentState() const;
101 WEBKIT_API void setDocumentState(const WebVector<WebString>&); 102 WEBKIT_API void setDocumentState(const WebVector<WebString>&);
102 103
103 WEBKIT_API WebString httpContentType() const; 104 WEBKIT_API WebString httpContentType() const;
104 WEBKIT_API void setHTTPContentType(const WebString&); 105 WEBKIT_API void setHTTPContentType(const WebString&);
105 106
106 WEBKIT_API WebHTTPBody httpBody() const; 107 WEBKIT_API WebHTTPBody httpBody() const;
107 WEBKIT_API void setHTTPBody(const WebHTTPBody&); 108 WEBKIT_API void setHTTPBody(const WebHTTPBody&);
108 109
110 WEBKIT_API void setHTTPHeaderField(const WebString&, const WebString&);
111 WEBKIT_API void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
112
109 WEBKIT_API WebVector<WebHistoryItem> children() const; 113 WEBKIT_API WebVector<WebHistoryItem> children() const;
110 WEBKIT_API void setChildren(const WebVector<WebHistoryItem>&); 114 WEBKIT_API void setChildren(const WebVector<WebHistoryItem>&);
111 WEBKIT_API void appendToChildren(const WebHistoryItem&); 115 WEBKIT_API void appendToChildren(const WebHistoryItem&);
112 116
113 #if WEBKIT_IMPLEMENTATION 117 #if WEBKIT_IMPLEMENTATION
114 WebHistoryItem(const WTF::PassRefPtr<WebCore::HistoryItem>&); 118 WebHistoryItem(const WTF::PassRefPtr<WebCore::HistoryItem>&);
115 WebHistoryItem& operator=(const WTF::PassRefPtr<WebCore::HistoryItem>&); 119 WebHistoryItem& operator=(const WTF::PassRefPtr<WebCore::HistoryItem>&);
116 operator WTF::PassRefPtr<WebCore::HistoryItem>() const; 120 operator WTF::PassRefPtr<WebCore::HistoryItem>() const;
117 #endif 121 #endif
118 122
119 private: 123 private:
120 void assign(WebHistoryItemPrivate*); 124 void assign(WebHistoryItemPrivate*);
121 void ensureMutable(); 125 void ensureMutable();
122 WebHistoryItemPrivate* m_private; 126 WebHistoryItemPrivate* m_private;
123 }; 127 };
124 128
125 } // namespace WebKit 129 } // namespace WebKit
126 130
127 #endif 131 #endif
OLDNEW
« no previous file with comments | « no previous file | webkit/api/src/WebHistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698