Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |