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