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 "content/renderer/renderer_webcookiejar_impl.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
9 #include "chrome/renderer/render_thread.h" | 9 #include "chrome/renderer/render_thread.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" |
11 #include "webkit/glue/webcookie.h" | 11 #include "webkit/glue/webcookie.h" |
12 | 12 |
13 using WebKit::WebCookie; | 13 using WebKit::WebCookie; |
14 using WebKit::WebString; | 14 using WebKit::WebString; |
15 using WebKit::WebURL; | 15 using WebKit::WebURL; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 bool RendererWebCookieJarImpl::cookiesEnabled( | 72 bool RendererWebCookieJarImpl::cookiesEnabled( |
73 const WebURL& url, const WebURL& first_party_for_cookies) { | 73 const WebURL& url, const WebURL& first_party_for_cookies) { |
74 bool cookies_enabled; | 74 bool cookies_enabled; |
75 // NOTE: This may pump events (see RenderThread::Send). | 75 // NOTE: This may pump events (see RenderThread::Send). |
76 sender_->Send(new ViewHostMsg_CookiesEnabled( | 76 sender_->Send(new ViewHostMsg_CookiesEnabled( |
77 MSG_ROUTING_NONE, url, first_party_for_cookies, &cookies_enabled)); | 77 MSG_ROUTING_NONE, url, first_party_for_cookies, &cookies_enabled)); |
78 return cookies_enabled; | 78 return cookies_enabled; |
79 } | 79 } |
OLD | NEW |