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

Side by Side Diff: chrome/test/webdriver/cookie.h

Issue 6330012: Cookie commands for the webdriver protocol (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updates Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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/08 18:35:22 #pragma goes after the #define
Joe 2011/02/09 06:32:10 Done.
6 #ifndef CHROME_TEST_WEBDRIVER_COOKIE_H_
7 #define CHROME_TEST_WEBDRIVER_COOKIE_H_
8
9 #include <string>
kkania 2011/02/08 18:35:22 newline after
Joe 2011/02/09 06:32:10 Done.
10 #include "base/values.h"
kkania 2011/02/08 18:35:22 change this to "class DictionaryValue;" and move t
Joe 2011/02/09 06:32:10 Done.
11
12 namespace webdriver {
13
14 // Class used to conveniently convert cookies to various formats.
kkania 2011/02/08 18:35:22 drop 'conveniently'
Joe 2011/02/09 06:32:10 Done.
15 class Cookie {
16 public:
17 explicit Cookie(const std::string& cookie);
18 explicit Cookie(const DictionaryValue& dict);
19
20 DictionaryValue* ToJSON();
kkania 2011/02/08 18:35:22 change ToJSON -> ToDictionary
Joe 2011/02/09 06:32:10 Done.
Joe 2011/02/09 06:32:10 Done.
21 std::string ToJSONString();
22 std::string ToString();
23
24 bool IsValid() { return valid_; }
kkania 2011/02/08 18:35:22 bool IsValid() const {
Joe 2011/02/09 06:32:10 Done.
25 const std::string get_name() { return name_; }
kkania 2011/02/08 18:35:22 std::string get_name() const {
Joe 2011/02/09 06:32:10 Done.
Joe 2011/02/09 06:32:10 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698