Chromium Code Reviews| 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 #ifndef CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 // TODO(darin): WebCookieJar.h is missing a WebString.h include! | 10 // TODO(darin): WebCookieJar.h is missing a WebString.h include! |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookieJar.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookieJar.h" |
| 13 | 13 |
| 14 namespace IPC { | 14 namespace IPC { |
| 15 class SyncMessage; | 15 class SyncMessage; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class RenderView; | |
| 19 | |
| 18 class RendererWebCookieJarImpl : public WebKit::WebCookieJar { | 20 class RendererWebCookieJarImpl : public WebKit::WebCookieJar { |
| 19 public: | 21 public: |
| 20 explicit RendererWebCookieJarImpl(IPC::Message::Sender* sender) | 22 explicit RendererWebCookieJarImpl(RenderView* sender) |
|
jam
2011/08/28 21:44:42
why is this changed?
ananta
2011/08/29 19:12:25
Restored it back to IPC::Message::Sender.
| |
| 21 : sender_(sender) { | 23 : sender_(sender) { |
| 22 } | 24 } |
| 23 virtual ~RendererWebCookieJarImpl() {} | 25 virtual ~RendererWebCookieJarImpl() {} |
| 24 | 26 |
| 25 private: | 27 private: |
| 26 // WebKit::WebCookieJar methods: | 28 // WebKit::WebCookieJar methods: |
| 27 virtual void setCookie( | 29 virtual void setCookie( |
| 28 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, | 30 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, |
| 29 const WebKit::WebString& value); | 31 const WebKit::WebString& value); |
| 30 virtual WebKit::WebString cookies( | 32 virtual WebKit::WebString cookies( |
| 31 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); | 33 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); |
| 32 virtual WebKit::WebString cookieRequestHeaderFieldValue( | 34 virtual WebKit::WebString cookieRequestHeaderFieldValue( |
| 33 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); | 35 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); |
| 34 virtual void rawCookies( | 36 virtual void rawCookies( |
| 35 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, | 37 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, |
| 36 WebKit::WebVector<WebKit::WebCookie>& cookies); | 38 WebKit::WebVector<WebKit::WebCookie>& cookies); |
| 37 virtual void deleteCookie( | 39 virtual void deleteCookie( |
| 38 const WebKit::WebURL& url, const WebKit::WebString& cookie_name); | 40 const WebKit::WebURL& url, const WebKit::WebString& cookie_name); |
| 39 virtual bool cookiesEnabled( | 41 virtual bool cookiesEnabled( |
| 40 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); | 42 const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); |
| 41 | 43 |
| 42 IPC::Message::Sender* sender_; | 44 RenderView* sender_; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 #endif // CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ | 47 #endif // CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ |
| OLD | NEW |