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

Side by Side Diff: chrome/browser/extensions/extension_cookies_api.h

Issue 6525016: Adding callbacks to `chrome.cookies.{set,remove}`. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
jochen (gone - plz use gerrit) 2011/02/15 13:44:10 nit. put 2011 here
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 // Defines the Chrome Extensions Cookies API functions for accessing internet 5 // Defines the Chrome Extensions Cookies API functions for accessing internet
6 // cookies, as specified in chrome/common/extensions/api/extension_api.json. 6 // cookies, as specified in chrome/common/extensions/api/extension_api.json.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
10 #pragma once 10 #pragma once
11 11
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 GURL url_; 143 GURL url_;
144 std::string name_; 144 std::string name_;
145 std::string value_; 145 std::string value_;
146 std::string domain_; 146 std::string domain_;
147 std::string path_; 147 std::string path_;
148 bool secure_; 148 bool secure_;
149 bool http_only_; 149 bool http_only_;
150 base::Time expiration_time_; 150 base::Time expiration_time_;
151 bool success_; 151 bool success_;
152 std::string store_id_;
152 scoped_refptr<URLRequestContextGetter> store_context_; 153 scoped_refptr<URLRequestContextGetter> store_context_;
154 net::CookieList cookie_list_;
153 }; 155 };
154 156
155 // Implements the cookies.remove() extension function. 157 // Implements the cookies.remove() extension function.
156 class RemoveCookieFunction : public CookiesFunction { 158 class RemoveCookieFunction : public CookiesFunction {
157 public: 159 public:
158 virtual bool RunImpl(); 160 virtual bool RunImpl();
159 // RemoveCookieFunction is sync. 161 // RemoveCookieFunction is sync.
160 virtual void Run(); 162 virtual void Run();
161 DECLARE_EXTENSION_FUNCTION_NAME("cookies.remove") 163 DECLARE_EXTENSION_FUNCTION_NAME("cookies.remove")
162 }; 164 };
163 165
164 // Implements the cookies.getAllCookieStores() extension function. 166 // Implements the cookies.getAllCookieStores() extension function.
165 class GetAllCookieStoresFunction : public CookiesFunction { 167 class GetAllCookieStoresFunction : public CookiesFunction {
166 public: 168 public:
167 virtual bool RunImpl(); 169 virtual bool RunImpl();
168 // GetAllCookieStoresFunction is sync. 170 // GetAllCookieStoresFunction is sync.
169 virtual void Run(); 171 virtual void Run();
170 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores") 172 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores")
171 }; 173 };
172 174
173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ 175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_cookies_api.cc » ('j') | chrome/browser/extensions/extension_cookies_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698