Add a missing dependency to //extensions/extensions_renderer_resources
[chromium-blink-merge.git] / components / html_viewer / web_cookie_jar_impl.h
blobbec897e427b73399a995060edc47e87b120f82af
1 // Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_
8 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
9 #include "third_party/WebKit/public/platform/WebCookieJar.h"
11 namespace html_viewer {
13 class WebCookieJarImpl : public blink::WebCookieJar {
14 public:
15 explicit WebCookieJarImpl(mojo::CookieStorePtr store);
16 virtual ~WebCookieJarImpl();
18 // blink::WebCookieJar methods:
19 virtual void setCookie(const blink::WebURL& url,
20 const blink::WebURL& first_party_for_cookies,
21 const blink::WebString& cookie);
22 virtual blink::WebString cookies(
23 const blink::WebURL& url,
24 const blink::WebURL& first_party_for_cookies);
25 virtual blink::WebString cookieRequestHeaderFieldValue(
26 const blink::WebURL& url,
27 const blink::WebURL& first_party_for_cookies);
29 private:
30 mojo::CookieStorePtr store_;
31 DISALLOW_COPY_AND_ASSIGN(WebCookieJarImpl);
34 } // namespace html_viewer
36 #endif // COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_