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

Side by Side Diff: webkit/api/src/WebURLResponse.cpp

Issue 201026: Add appCacheManifestUrl data member to WebURLResponse, and use it to detect '... (Closed) Base URL: svn://chrome-svn/chrome/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 | « webkit/api/src/WebURLRequest.cpp ('k') | webkit/appcache/web_application_cache_host_impl.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 /* 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return m_private->m_resourceResponse->isContentFiltered(); 203 return m_private->m_resourceResponse->isContentFiltered();
204 } 204 }
205 205
206 void WebURLResponse::setIsContentFiltered(bool isContentFiltered) 206 void WebURLResponse::setIsContentFiltered(bool isContentFiltered)
207 { 207 {
208 m_private->m_resourceResponse->setIsContentFiltered(isContentFiltered); 208 m_private->m_resourceResponse->setIsContentFiltered(isContentFiltered);
209 } 209 }
210 210
211 long long WebURLResponse::appCacheID() const 211 long long WebURLResponse::appCacheID() const
212 { 212 {
213 return m_private->m_resourceResponse->getAppCacheID(); 213 return m_private->m_resourceResponse->appCacheID();
214 } 214 }
215 215
216 void WebURLResponse::setAppCacheID(long long appCacheID) 216 void WebURLResponse::setAppCacheID(long long appCacheID)
217 { 217 {
218 m_private->m_resourceResponse->setAppCacheID(appCacheID); 218 m_private->m_resourceResponse->setAppCacheID(appCacheID);
219 } 219 }
220 220
221 WebURL WebURLResponse::appCacheManifestURL() const
222 {
223 return m_private->m_resourceResponse->appCacheManifestURL();
224 }
225
226 void WebURLResponse::setAppCacheManifestURL(const WebURL& url)
227 {
228 m_private->m_resourceResponse->setAppCacheManifestURL(url);
229 }
230
221 WebCString WebURLResponse::securityInfo() const 231 WebCString WebURLResponse::securityInfo() const
222 { 232 {
223 // FIXME: getSecurityInfo is misnamed. 233 // FIXME: getSecurityInfo is misnamed.
224 return m_private->m_resourceResponse->getSecurityInfo(); 234 return m_private->m_resourceResponse->getSecurityInfo();
225 } 235 }
226 236
227 void WebURLResponse::setSecurityInfo(const WebCString& securityInfo) 237 void WebURLResponse::setSecurityInfo(const WebCString& securityInfo)
228 { 238 {
229 m_private->m_resourceResponse->setSecurityInfo(securityInfo); 239 m_private->m_resourceResponse->setSecurityInfo(securityInfo);
230 } 240 }
(...skipping 19 matching lines...) Expand all
250 // Subclasses may call this directly so a self-assignment check is needed 260 // Subclasses may call this directly so a self-assignment check is needed
251 // here as well as in the public assign method. 261 // here as well as in the public assign method.
252 if (m_private == p) 262 if (m_private == p)
253 return; 263 return;
254 if (m_private) 264 if (m_private)
255 m_private->dispose(); 265 m_private->dispose();
256 m_private = p; 266 m_private = p;
257 } 267 }
258 268
259 } // namespace WebKit 269 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/api/src/WebURLRequest.cpp ('k') | webkit/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698