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 "chrome/renderer/renderer_webcookiejar_impl.h" | 5 #include "chrome/renderer/renderer_webcookiejar_impl.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "chrome/renderer/render_thread.h" | 8 #include "chrome/renderer/render_thread.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" |
| 10 #include "webkit/glue/webcookie.h" |
10 | 11 |
11 using WebKit::WebCookie; | 12 using WebKit::WebCookie; |
12 using WebKit::WebString; | 13 using WebKit::WebString; |
13 using WebKit::WebURL; | 14 using WebKit::WebURL; |
14 using WebKit::WebVector; | 15 using WebKit::WebVector; |
15 | 16 |
16 void RendererWebCookieJarImpl::setCookie( | 17 void RendererWebCookieJarImpl::setCookie( |
17 const WebURL& url, const WebURL& first_party_for_cookies, | 18 const WebURL& url, const WebURL& first_party_for_cookies, |
18 const WebString& value) { | 19 const WebString& value) { |
19 std::string value_utf8; | 20 std::string value_utf8; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); | 68 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); |
68 } | 69 } |
69 | 70 |
70 bool RendererWebCookieJarImpl::cookiesEnabled( | 71 bool RendererWebCookieJarImpl::cookiesEnabled( |
71 const WebURL& url, const WebURL& first_party_for_cookies) { | 72 const WebURL& url, const WebURL& first_party_for_cookies) { |
72 bool enabled; | 73 bool enabled; |
73 sender_->Send(new ViewHostMsg_GetCookiesEnabled( | 74 sender_->Send(new ViewHostMsg_GetCookiesEnabled( |
74 url, first_party_for_cookies, &enabled)); | 75 url, first_party_for_cookies, &enabled)); |
75 return enabled; | 76 return enabled; |
76 } | 77 } |
OLD | NEW |