| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebCookieJar_h | 31 #ifndef WebCookieJar_h |
| 32 #define WebCookieJar_h | 32 #define WebCookieJar_h |
| 33 | 33 |
| 34 #include "WebString.h" | 34 #include "WebString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class WebURL; | 38 class WebURL; |
| 39 struct WebCookie; | |
| 40 template <typename T> | |
| 41 class WebVector; | |
| 42 | 39 |
| 43 class WebCookieJar { | 40 class WebCookieJar { |
| 44 public: | 41 public: |
| 45 virtual void setCookie(const WebURL&, | 42 virtual void setCookie(const WebURL&, |
| 46 const WebURL& firstPartyForCookies, | 43 const WebURL& firstPartyForCookies, |
| 47 const WebString& cookie) {} | 44 const WebString& cookie) {} |
| 48 virtual WebString cookies(const WebURL&, const WebURL& firstPartyForCookies) { | 45 virtual WebString cookies(const WebURL&, const WebURL& firstPartyForCookies) { |
| 49 return WebString(); | 46 return WebString(); |
| 50 } | 47 } |
| 51 virtual bool cookiesEnabled(const WebURL&, | 48 virtual bool cookiesEnabled(const WebURL&, |
| 52 const WebURL& firstPartyForCookies) { | 49 const WebURL& firstPartyForCookies) { |
| 53 return true; | 50 return true; |
| 54 } | 51 } |
| 55 | 52 |
| 56 protected: | 53 protected: |
| 57 ~WebCookieJar() {} | 54 ~WebCookieJar() {} |
| 58 }; | 55 }; |
| 59 | 56 |
| 60 } // namespace blink | 57 } // namespace blink |
| 61 | 58 |
| 62 #endif | 59 #endif |
| OLD | NEW |