Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Side by Side Diff: mojo/services/html_viewer/webcookiejar_impl.h

Issue 409883007: Mojo: add support for cookies to HTMLViewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_IMPL_H_
7
8 #include "mojo/services/public/interfaces/network/cookie_store.mojom.h"
9 #include "third_party/WebKit/public/platform/WebCookieJar.h"
10
11 namespace mojo {
12
13 class WebCookieJarImpl : public blink::WebCookieJar {
14 public:
15 explicit WebCookieJarImpl(CookieStorePtr store);
16 virtual ~WebCookieJarImpl();
17
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);
29
30 private:
31 CookieStorePtr store_;
32 DISALLOW_COPY_AND_ASSIGN(WebCookieJarImpl);
33 };
34
35 } // namespace mojo
36
37 #endif // MOJO_SERVICES_HTML_VIEWER_WEBCOOKIEJAR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698