OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #pragma once | |
kkania
2011/02/04 17:04:44
put this right after the #define
Joe
2011/02/09 06:32:10
See the pervious comment on pragma
On 2011/02/04 1
| |
6 #ifndef CHROME_TEST_WEBDRIVER_COOKIE_H_ | |
7 #define CHROME_TEST_WEBDRIVER_COOKIE_H_ | |
8 | |
9 #include <string> | |
10 #include "base/values.h" | |
11 | |
12 namespace webdriver { | |
13 | |
14 // Class used to conveniently convert cookies to various formats. | |
15 class Cookie { | |
16 public: | |
17 explicit Cookie(const std::string& cookie); | |
18 explicit Cookie(const DictionaryValue& dict); | |
19 | |
20 DictionaryValue* ToJSON(); | |
21 std::string ToJSONString(); | |
22 std::string ToString(); | |
23 | |
24 bool IsValid() { return valid_; } | |
25 const std::string get_name() { return name_; } | |
26 | |
27 private: | |
28 std::string name_; | |
29 std::string value_; | |
30 std::string path_; | |
31 std::string domain_; | |
32 std::string expires_; | |
33 bool secure_; | |
34 bool http_; | |
35 bool valid_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(Cookie); | |
38 }; | |
39 | |
40 } // namespace webdriver | |
41 | |
42 #endif // CHROME_TEST_WEBDRIVER_COOKIE_H_ | |
OLD | NEW |