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

Side by Side Diff: webkit/glue/weburlrequest_impl.cc

Issue 113758: Remove the HistoryState property of WebRequest.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « webkit/glue/weburlrequest_impl.h ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "config.h" 5 #include "config.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 7
8 MSVC_PUSH_WARNING_LEVEL(0); 8 MSVC_PUSH_WARNING_LEVEL(0);
9 #include "FormData.h" 9 #include "FormData.h"
10 #include "HTTPHeaderMap.h" 10 #include "HTTPHeaderMap.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 webkit_glue::StdStringToString(it->first), 120 webkit_glue::StdStringToString(it->first),
121 webkit_glue::StdStringToString(it->second)); 121 webkit_glue::StdStringToString(it->second));
122 } 122 }
123 } 123 }
124 124
125 std::string WebRequestImpl::GetHttpReferrer() const { 125 std::string WebRequestImpl::GetHttpReferrer() const {
126 return webkit_glue::StringToStdString( 126 return webkit_glue::StringToStdString(
127 request_.resourceRequest().httpReferrer()); 127 request_.resourceRequest().httpReferrer());
128 } 128 }
129 129
130 std::string WebRequestImpl::GetHistoryState() const {
131 std::string value;
132 webkit_glue::HistoryItemToString(history_item_, &value);
133 return value;
134 }
135
136 void WebRequestImpl::SetHistoryState(const std::string& value) {
137 history_item_ = webkit_glue::HistoryItemFromString(value);
138 }
139
140 std::string WebRequestImpl::GetSecurityInfo() const { 130 std::string WebRequestImpl::GetSecurityInfo() const {
141 return webkit_glue::CStringToStdString( 131 return webkit_glue::CStringToStdString(
142 request_.resourceRequest().securityInfo()); 132 request_.resourceRequest().securityInfo());
143 } 133 }
144 134
145 void WebRequestImpl::SetSecurityInfo(const std::string& value) { 135 void WebRequestImpl::SetSecurityInfo(const std::string& value) {
146 request_.resourceRequest().setSecurityInfo( 136 request_.resourceRequest().setSecurityInfo(
147 webkit_glue::StdStringToCString(value)); 137 webkit_glue::StdStringToCString(value));
148 } 138 }
149 139
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 190 }
201 191
202 void WebRequestImpl::SetRequestorID(int requestor_id) { 192 void WebRequestImpl::SetRequestorID(int requestor_id) {
203 request_.resourceRequest().setRequestorID(requestor_id); 193 request_.resourceRequest().setRequestorID(requestor_id);
204 } 194 }
205 195
206 // static 196 // static
207 WebRequest* WebRequest::Create(const GURL& url) { 197 WebRequest* WebRequest::Create(const GURL& url) {
208 return new WebRequestImpl(url); 198 return new WebRequestImpl(url);
209 } 199 }
OLDNEW
« no previous file with comments | « webkit/glue/weburlrequest_impl.h ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698