| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "webkit/support/simple_webcookiejar_impl.h" | |
| 6 | |
| 7 #include "third_party/WebKit/public/platform/WebURL.h" | |
| 8 #include "webkit/support/simple_resource_loader_bridge.h" | |
| 9 | |
| 10 using WebKit::WebString; | |
| 11 using WebKit::WebURL; | |
| 12 | |
| 13 void SimpleWebCookieJarImpl::setCookie(const WebURL& url, | |
| 14 const WebURL& first_party_for_cookies, | |
| 15 const WebString& value) { | |
| 16 SimpleResourceLoaderBridge::SetCookie( | |
| 17 url, first_party_for_cookies, value.utf8()); | |
| 18 } | |
| 19 | |
| 20 WebString SimpleWebCookieJarImpl::cookies( | |
| 21 const WebURL& url, | |
| 22 const WebURL& first_party_for_cookies) { | |
| 23 return WebString::fromUTF8( | |
| 24 SimpleResourceLoaderBridge::GetCookies(url, first_party_for_cookies)); | |
| 25 } | |
| OLD | NEW |