| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "CookieJar.h" | 27 #include "CookieJar.h" |
| 28 | 28 |
| 29 #include "Document.h" | 29 #include "Document.h" |
| 30 #include "Frame.h" | 30 #include "Frame.h" |
| 31 #include "FrameLoader.h" | 31 #include "FrameLoader.h" |
| 32 #include "NetworkingContext.h" | 32 #include "NetworkingContext.h" |
| 33 #include "PlatformCookieJar.h" | 33 #include "PlatformCookieJar.h" |
| 34 | 34 |
| 35 #if PLATFORM(BLACKBERRY) | |
| 36 #error Blackberry currently uses a fork of this file because of layering violati
ons | |
| 37 #endif | |
| 38 | |
| 39 namespace WebCore { | 35 namespace WebCore { |
| 40 | 36 |
| 41 static NetworkingContext* networkingContext(const Document* document) | 37 static NetworkingContext* networkingContext(const Document* document) |
| 42 { | 38 { |
| 43 // FIXME: Returning 0 means falling back to default context. That's not a ch
oice that is appropriate to do at runtime | 39 // FIXME: Returning 0 means falling back to default context. That's not a ch
oice that is appropriate to do at runtime |
| 44 if (!document) | 40 if (!document) |
| 45 return 0; | 41 return 0; |
| 46 Frame* frame = document->frame(); | 42 Frame* frame = document->frame(); |
| 47 if (!frame) | 43 if (!frame) |
| 48 return 0; | 44 return 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 return getRawCookies(session, document->firstPartyForCookies(), url, cookies
); | 89 return getRawCookies(session, document->firstPartyForCookies(), url, cookies
); |
| 94 } | 90 } |
| 95 | 91 |
| 96 void deleteCookie(const Document* document, const KURL& url, const String& cooki
eName) | 92 void deleteCookie(const Document* document, const KURL& url, const String& cooki
eName) |
| 97 { | 93 { |
| 98 LOCAL_SESSION(document) | 94 LOCAL_SESSION(document) |
| 99 deleteCookie(session, url, cookieName); | 95 deleteCookie(session, url, cookieName); |
| 100 } | 96 } |
| 101 | 97 |
| 102 } | 98 } |
| OLD | NEW |