| 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 "content/renderer/renderer_webcookiejar_impl.h" | 5 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
| 9 #include "content/public/renderer/content_renderer_client.h" | 9 #include "content/public/renderer/content_renderer_client.h" |
| 10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCookie.h" |
| 12 #include "webkit/glue/webcookie.h" | 12 #include "webkit/glue/webcookie.h" |
| 13 | 13 |
| 14 using WebKit::WebCookie; | 14 using WebKit::WebCookie; |
| 15 using WebKit::WebString; | 15 using WebKit::WebString; |
| 16 using WebKit::WebURL; | 16 using WebKit::WebURL; |
| 17 using WebKit::WebVector; | 17 using WebKit::WebVector; |
| 18 | 18 |
| 19 void RendererWebCookieJarImpl::setCookie( | 19 void RendererWebCookieJarImpl::setCookie( |
| 20 const WebURL& url, const WebURL& first_party_for_cookies, | 20 const WebURL& url, const WebURL& first_party_for_cookies, |
| 21 const WebString& value) { | 21 const WebString& value) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool RendererWebCookieJarImpl::cookiesEnabled( | 80 bool RendererWebCookieJarImpl::cookiesEnabled( |
| 81 const WebURL& url, const WebURL& first_party_for_cookies) { | 81 const WebURL& url, const WebURL& first_party_for_cookies) { |
| 82 bool cookies_enabled; | 82 bool cookies_enabled; |
| 83 // NOTE: This may pump events (see RenderThread::Send). | 83 // NOTE: This may pump events (see RenderThread::Send). |
| 84 sender_->Send(new ViewHostMsg_CookiesEnabled( | 84 sender_->Send(new ViewHostMsg_CookiesEnabled( |
| 85 url, first_party_for_cookies, &cookies_enabled)); | 85 url, first_party_for_cookies, &cookies_enabled)); |
| 86 return cookies_enabled; | 86 return cookies_enabled; |
| 87 } | 87 } |
| OLD | NEW |