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

Unified Diff: net/base/cookie_options.h

Issue 9703011: Move the cookie store implementation into its own directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net/base/cookies/ -> net/cookies/ Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/cookie_monster_unittest.cc ('k') | net/base/cookie_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_options.h
diff --git a/net/base/cookie_options.h b/net/base/cookie_options.h
index 203adaf0b3c9c4702def4ae081645383e30e0fb2..b2270af678ed4ab4f1e7aac825902e7c0c0b5f86 100644
--- a/net/base/cookie_options.h
+++ b/net/base/cookie_options.h
@@ -1,40 +1,14 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
+// Provides a temporary redirection while clients are updated to use the new
+// path.
#ifndef NET_BASE_COOKIE_OPTIONS_H_
#define NET_BASE_COOKIE_OPTIONS_H_
#pragma once
-namespace net {
-
-class CookieOptions {
- public:
- // Default is to exclude httponly, which means:
- // - reading operations will not return httponly cookies.
- // - writing operations will not write httponly cookies.
- CookieOptions()
- : exclude_httponly_(true),
- force_session_(false) {
- }
-
- void set_exclude_httponly() { exclude_httponly_ = true; }
- void set_include_httponly() { exclude_httponly_ = false; }
- bool exclude_httponly() const { return exclude_httponly_; }
-
- // Forces a cookie to be saved as a session cookie. If the expiration time of
- // the cookie is in the past, i.e. the cookie would end up being deleted, this
- // option is ignored. See CookieMonsterTest.ForceSessionOnly.
- void set_force_session() { force_session_ = true; }
- bool force_session() const { return force_session_; }
-
- private:
- bool exclude_httponly_;
- bool force_session_;
-};
-} // namespace net
+#include "net/cookies/cookie_options.h"
#endif // NET_BASE_COOKIE_OPTIONS_H_
-
« no previous file with comments | « net/base/cookie_monster_unittest.cc ('k') | net/base/cookie_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698