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" | |
11 | 10 |
12 using WebKit::WebCookie; | 11 using WebKit::WebCookie; |
13 using WebKit::WebString; | 12 using WebKit::WebString; |
14 using WebKit::WebURL; | 13 using WebKit::WebURL; |
15 using WebKit::WebVector; | 14 using WebKit::WebVector; |
16 | 15 |
17 void RendererWebCookieJarImpl::setCookie( | 16 void RendererWebCookieJarImpl::setCookie( |
18 const WebURL& url, const WebURL& first_party_for_cookies, | 17 const WebURL& url, const WebURL& first_party_for_cookies, |
19 const WebString& value) { | 18 const WebString& value) { |
20 std::string value_utf8; | 19 std::string value_utf8; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); | 67 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); |
69 } | 68 } |
70 | 69 |
71 bool RendererWebCookieJarImpl::cookiesEnabled( | 70 bool RendererWebCookieJarImpl::cookiesEnabled( |
72 const WebURL& url, const WebURL& first_party_for_cookies) { | 71 const WebURL& url, const WebURL& first_party_for_cookies) { |
73 bool enabled; | 72 bool enabled; |
74 sender_->Send(new ViewHostMsg_GetCookiesEnabled( | 73 sender_->Send(new ViewHostMsg_GetCookiesEnabled( |
75 url, first_party_for_cookies, &enabled)); | 74 url, first_party_for_cookies, &enabled)); |
76 return enabled; | 75 return enabled; |
77 } | 76 } |
OLD | NEW |