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

Unified Diff: net/cookies/cookie_options.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/cookies/cookie_monster_unittest.cc ('k') | net/cookies/cookie_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_options.h
diff --git a/net/cookies/cookie_options.h b/net/cookies/cookie_options.h
deleted file mode 100644
index ed5e2ef3a4772e5d8b08cec859cbf25bb3d806a9..0000000000000000000000000000000000000000
--- a/net/cookies/cookie_options.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 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_COOKIES_COOKIE_OPTIONS_H_
-#define NET_COOKIES_COOKIE_OPTIONS_H_
-
-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),
- server_time_() {
- }
-
- void set_exclude_httponly() { exclude_httponly_ = true; }
- void set_include_httponly() { exclude_httponly_ = false; }
- bool exclude_httponly() const { return exclude_httponly_; }
-
- // |server_time| indicates what the server sending us the Cookie thought the
- // current time was when the cookie was produced. This is used to adjust for
- // clock skew between server and host.
- void set_server_time(const base::Time& server_time) {
- server_time_ = server_time;
- }
- bool has_server_time() const { return !server_time_.is_null(); }
- base::Time server_time() const { return server_time_; }
-
- private:
- bool exclude_httponly_;
- base::Time server_time_;
-};
-} // namespace net
-
-#endif // NET_COOKIES_COOKIE_OPTIONS_H_
-
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/cookies/cookie_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698