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

Side by Side Diff: chrome/browser/automation/automation_util.h

Issue 6705004: Return the full cookie details in TestingAutomationProvider and pass around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/automation/automation_provider.h" 10 #include "chrome/browser/automation/automation_provider.h"
(...skipping 18 matching lines...) Expand all
29 TabContents* contents, 29 TabContents* contents,
30 int* response_value); 30 int* response_value);
31 31
32 // Deletes a cookie for |url| in the given tab. Can be called from any thread. 32 // Deletes a cookie for |url| in the given tab. Can be called from any thread.
33 void DeleteCookie(const GURL& url, 33 void DeleteCookie(const GURL& url,
34 const std::string& cookie_name, 34 const std::string& cookie_name,
35 TabContents* contents, 35 TabContents* contents,
36 bool* success); 36 bool* success);
37 37
38 // Gets the cookies for the given URL. Uses the JSON interface. 38 // Gets the cookies for the given URL. Uses the JSON interface.
39 // Example: 39 // See |TestingAutomationProvider| for example input.
40 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" }
41 // output: { "cookies": "PREF=12012" }
42 void GetCookiesJSON(AutomationProvider* provider, 40 void GetCookiesJSON(AutomationProvider* provider,
43 DictionaryValue* args, 41 DictionaryValue* args,
44 IPC::Message* reply_message); 42 IPC::Message* reply_message);
45 43
46 // Deletes the cookie with the given name for the URL. Uses the JSON interface. 44 // Deletes the cookie with the given name for the URL. Uses the JSON interface.
47 // Example: 45 // See |TestingAutomationProvider| for example input.
48 // input: { "windex": 1,
49 // "tab_index": 1,
50 // "url": "http://www.google.com",
51 // "name": "my_cookie"
52 // }
53 // output: none
54 void DeleteCookieJSON(AutomationProvider* provider, 46 void DeleteCookieJSON(AutomationProvider* provider,
55 DictionaryValue* args, 47 DictionaryValue* args,
56 IPC::Message* reply_message); 48 IPC::Message* reply_message);
57 49
58 // Sets a cookie for the given URL. Uses the JSON interface. 50 // Sets a cookie for the given URL. Uses the JSON interface.
59 // Example: 51 // See |TestingAutomationProvider| for example input.
60 // input: { "windex": 1,
61 // "tab_index": 1,
62 // "url": "http://www.google.com",
63 // "cookie": "PREF=21321"
64 // }
65 // output: none
66 void SetCookieJSON(AutomationProvider* provider, 52 void SetCookieJSON(AutomationProvider* provider,
67 DictionaryValue* args, 53 DictionaryValue* args,
68 IPC::Message* reply_message); 54 IPC::Message* reply_message);
69 55
70 } // namespace automation_util 56 } // namespace automation_util
71 57
72 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_ 58 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698