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

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

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts in TestingAutomationProvider. 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_cookie_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_COOKIE_UTIL_H_
Paweł Hajdan Jr. 2011/03/08 07:49:01 Just automation_util please, I know another review
Charlie Reis 2011/03/08 20:44:41 Done.
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_COOKIE_UTIL_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/browser/tab_contents/tab_contents.h"
11 #include "net/url_request/url_request_context.h"
12
13 // This file contains utility functions for accessing cookies for a TabContents
14 // on the correct thread.
15
16 namespace automation_cookie_util {
17
18 void GetCookiesOnIOThread(
Paweł Hajdan Jr. 2011/03/08 07:49:01 Those OnIOThread functions should be in anonymous
Charlie Reis 2011/03/08 20:44:41 Yes, it's better to hide them. There were a few n
19 const GURL& url,
20 const scoped_refptr<URLRequestContextGetter>& context_getter,
21 base::WaitableEvent* event,
22 std::string* cookies);
23
24 void SetCookieOnIOThread(
25 const GURL& url,
26 const std::string& value,
27 const scoped_refptr<URLRequestContextGetter>& context_getter,
28 base::WaitableEvent* event,
29 bool* success);
30
31 void DeleteCookieOnIOThread(
32 const GURL& url,
33 const std::string& name,
34 const scoped_refptr<URLRequestContextGetter>& context_getter,
35 base::WaitableEvent* event);
36
37 // Gets the size and value of the cookie string for |url| in the given tab.
38 // Can be called from any thread.
39 void GetCookies(const GURL& url,
40 TabContents* contents,
41 int* value_size,
42 std::string* value);
43
44 // Sets a cookie for |url| in the given tab. Can be called from any thread.
45 void SetCookie(const GURL& url,
46 const std::string value,
47 TabContents* contents,
48 int* response_value);
49
50 // Deletes a cookie for |url| in the given tab. Can be called from any thread.
51 void DeleteCookie(const GURL& url,
52 const std::string& cookie_name,
53 TabContents* contents,
54 bool* success);
55
56 } // namespace automation_cookie_util
57
58 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_COOKIE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_cookie_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698