summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/cookie_store_util.h
blob: b4b60ff19550caf4551d70d02784194a3a25ed29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
#define CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_

#include "content/public/browser/browser_context.h"
#include "content/public/browser/cookie_store_factory.h"

class Profile;

namespace net {
class CookieMonsterDelegate;
}  // namespace net

namespace chrome_browser_net {

// Factory method for creating a CookieStore delegate that sends
// chrome::NOTIFICATION_COOKIE_CHANGED for the given profile. This
// delegate is stateless so only one is necessary per profile.
net::CookieMonsterDelegate* CreateCookieDelegate(Profile* profile);

// Factory method for returning a CookieCryptoDelegate if one is appropriate for
// this platform. The object returned is a LazyInstance. Ownership is not
// transferred.
net::CookieCryptoDelegate* GetCookieCryptoDelegate();

}  // namespace chrome_browser_net

#endif  // CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_