Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / renderer / renderer_webcookiejar_impl.h
blobefcee0382af402277c88cb47c251170d27ed9dc6
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_
8 // TODO(darin): WebCookieJar.h is missing a WebString.h include!
9 #include "third_party/WebKit/public/platform/WebCookieJar.h"
11 namespace content {
12 class RenderFrameImpl;
14 class RendererWebCookieJarImpl : public blink::WebCookieJar {
15 public:
16 explicit RendererWebCookieJarImpl(RenderFrameImpl* sender)
17 : sender_(sender) {
19 virtual ~RendererWebCookieJarImpl() {}
21 private:
22 // blink::WebCookieJar methods:
23 virtual void setCookie(
24 const blink::WebURL& url, const blink::WebURL& first_party_for_cookies,
25 const blink::WebString& value);
26 virtual blink::WebString cookies(
27 const blink::WebURL& url, const blink::WebURL& first_party_for_cookies);
28 virtual blink::WebString cookieRequestHeaderFieldValue(
29 const blink::WebURL& url, const blink::WebURL& first_party_for_cookies);
30 virtual bool cookiesEnabled(
31 const blink::WebURL& url, const blink::WebURL& first_party_for_cookies);
33 RenderFrameImpl* sender_;
36 } // namespace content
38 #endif // CONTENT_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_