| OLD | NEW |
| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool cacheControlNoStoreHeaderPresent( | 189 bool cacheControlNoStoreHeaderPresent( |
| 190 const WebLocalFrameImpl& webLocalFrameImpl) { | 190 const WebLocalFrameImpl& webLocalFrameImpl) { |
| 191 const ResourceResponse& response = | 191 const ResourceResponse& response = |
| 192 webLocalFrameImpl.dataSource()->response().toResourceResponse(); | 192 webLocalFrameImpl.dataSource()->response().toResourceResponse(); |
| 193 if (response.cacheControlContainsNoStore()) | 193 if (response.cacheControlContainsNoStore()) |
| 194 return true; | 194 return true; |
| 195 | 195 |
| 196 const ResourceRequest& request = | 196 const ResourceRequest& request = |
| 197 webLocalFrameImpl.dataSource()->request().toResourceRequest(); | 197 webLocalFrameImpl.dataSource()->getRequest().toResourceRequest(); |
| 198 return request.cacheControlContainsNoStore(); | 198 return request.cacheControlContainsNoStore(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 bool frameShouldBeSerializedAsMHTML( | 201 bool frameShouldBeSerializedAsMHTML( |
| 202 WebLocalFrame* frame, | 202 WebLocalFrame* frame, |
| 203 WebFrameSerializerCacheControlPolicy cacheControlPolicy) { | 203 WebFrameSerializerCacheControlPolicy cacheControlPolicy) { |
| 204 WebLocalFrameImpl* webLocalFrameImpl = toWebLocalFrameImpl(frame); | 204 WebLocalFrameImpl* webLocalFrameImpl = toWebLocalFrameImpl(frame); |
| 205 DCHECK(webLocalFrameImpl); | 205 DCHECK(webLocalFrameImpl); |
| 206 | 206 |
| 207 if (cacheControlPolicy == WebFrameSerializerCacheControlPolicy::None) | 207 if (cacheControlPolicy == WebFrameSerializerCacheControlPolicy::None) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 const WebString& baseTarget) { | 343 const WebString& baseTarget) { |
| 344 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. | 344 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. |
| 345 if (baseTarget.isEmpty()) | 345 if (baseTarget.isEmpty()) |
| 346 return String("<base href=\".\">"); | 346 return String("<base href=\".\">"); |
| 347 String baseString = "<base href=\".\" target=\"" + | 347 String baseString = "<base href=\".\" target=\"" + |
| 348 static_cast<const String&>(baseTarget) + "\">"; | 348 static_cast<const String&>(baseTarget) + "\">"; |
| 349 return baseString; | 349 return baseString; |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace blink | 352 } // namespace blink |
| OLD | NEW |