OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_ | |
6 #define COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h" | |
10 #include "third_party/WebKit/public/platform/WebCookieJar.h" | |
11 | |
12 namespace html_viewer { | |
13 | |
14 class WebCookieJarImpl : public blink::WebCookieJar { | |
15 public: | |
16 explicit WebCookieJarImpl(mojo::CookieStorePtr store); | |
17 virtual ~WebCookieJarImpl(); | |
18 | |
19 // blink::WebCookieJar methods: | |
20 void setCookie(const blink::WebURL& url, | |
21 const blink::WebURL& first_party_for_cookies, | |
22 const blink::WebString& cookie) override; | |
23 blink::WebString cookies( | |
24 const blink::WebURL& url, | |
25 const blink::WebURL& first_party_for_cookies) override; | |
26 blink::WebString cookieRequestHeaderFieldValue( | |
27 const blink::WebURL& url, | |
28 const blink::WebURL& first_party_for_cookies) override; | |
29 | |
30 private: | |
31 mojo::CookieStorePtr store_; | |
32 DISALLOW_COPY_AND_ASSIGN(WebCookieJarImpl); | |
33 }; | |
34 | |
35 } // namespace html_viewer | |
36 | |
37 #endif // COMPONENTS_HTML_VIEWER_WEB_COOKIE_JAR_IMPL_H_ | |
OLD | NEW |