base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / mojo / services / html_viewer / webcookiejar_impl.h
blobfdda17286e8a898c833cdbcfcb02784880a6f6f8
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 MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_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(
20 const blink::WebURL& url,
21 const blink::WebURL& first_party_for_cookies,
22 const blink::WebString& cookie);
23 virtual blink::WebString cookies(
24 const blink::WebURL& url,
25 const blink::WebURL& first_party_for_cookies);
26 virtual blink::WebString cookieRequestHeaderFieldValue(
27 const blink::WebURL& url,
28 const blink::WebURL& first_party_for_cookies);
30 private:
31 mojo::CookieStorePtr store_;
32 DISALLOW_COPY_AND_ASSIGN(WebCookieJarImpl);
35 } // namespace html_viewer
37 #endif // MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_IMPL_H_