Index: net/base/cookie_options.h |
=================================================================== |
--- net/base/cookie_options.h (revision 65294) |
+++ net/base/cookie_options.h (working copy) |
@@ -12,12 +12,13 @@ |
class CookieOptions { |
public: |
- // Default is to exclude httponly, which means: |
- // - reading operations will not return httponly cookies. |
+ // Default is for |
+ // - reading operations will not return httponly or origin cookies. |
// - writing operations will not write httponly cookies. |
CookieOptions() |
: exclude_httponly_(true), |
- force_session_(false) { |
+ force_session_(false), |
+ read_origin_(false) { |
} |
void set_exclude_httponly() { exclude_httponly_ = true; } |
@@ -28,9 +29,14 @@ |
void set_force_session() { force_session_ = true; } |
bool force_session() const { return force_session_; } |
+ void set_read_origin(bool flag) { read_origin_ = flag; } |
+ bool read_origin() const { return read_origin_; } |
+ |
private: |
+ // TODO(abarth): These member variable names should be nouns and not verbs. |
bool exclude_httponly_; |
bool force_session_; |
+ bool read_origin_; |
}; |
} // namespace net |