<commit_before>// Copyright (c) 2006-2009 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.

// Brought to you by number 42.

#ifndef NET_BASE_COOKIE_STORE_H_
#define NET_BASE_COOKIE_STORE_H_

#include <string>

#include "base/basictypes.h"
#include "base/time.h"
#include "net/base/cookie_options.h"

class GURL;

namespace net {

class CookieMonster;

// An interface for storing and retrieving cookies. Implementations need to
// be therad safe as its methods can be accessed from IO as well as UI threads.
class CookieStore {
 public:
  // Set a single cookie.  Expects a cookie line, like "a=1; domain=b.com".
  virtual bool SetCookie(const GURL& url, const std::string& cookie_line) = 0;
  virtual bool SetCookieWithOptions(const GURL& url,
                                    const std::string& cookie_line,
                                    const CookieOptions& options) = 0;
  // Sets a single cookie with a specific creation date. To set a cookie with<commit_msg>Make CookieStore dtor virtual<commit_after>// Copyright (c) 2006-2009 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.

// Brought to you by number 42.

#ifndef NET_BASE_COOKIE_STORE_H_
#define NET_BASE_COOKIE_STORE_H_

#include <string>

#include "base/basictypes.h"
#include "base/time.h"
#include "net/base/cookie_options.h"

class GURL;

namespace net {

class CookieMonster;

// An interface for storing and retrieving cookies. Implementations need to
// be therad safe as its methods can be accessed from IO as well as UI threads.
class CookieStore {
 public:
   virtual ~CookieStore() {}

  // Set a single cookie.  Expects a cookie line, like "a=1; domain=b.com".
  virtual bool SetCookie(const GURL& url, const std::string& cookie_line) = 0;
  virtual bool SetCookieWithOptions(const GURL& url,
                                    const std::string& cookie_line,
                                    const CookieOptions& options) = 0;
  // Sets a single cookie with a specific creation date. To set a cookie with
{'fraction_non_alphanumeric': 0.07990867579908675, 'fraction_numerical': 0.011872146118721462, 'mean_word_length': 3.080074487895717, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3913995', 'n_tokens_mistral': 672, 'n_tokens_neox': 631, 'n_words': 260}