OLD | NEW |
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 // 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 the 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 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // Implements the cookies.getAllCookieStores() extension function. | 180 // Implements the cookies.getAllCookieStores() extension function. |
181 class GetAllCookieStoresFunction : public CookiesFunction { | 181 class GetAllCookieStoresFunction : public CookiesFunction { |
182 public: | 182 public: |
183 virtual bool RunImpl() OVERRIDE; | 183 virtual bool RunImpl() OVERRIDE; |
184 // GetAllCookieStoresFunction is sync. | 184 // GetAllCookieStoresFunction is sync. |
185 virtual void Run() OVERRIDE; | 185 virtual void Run() OVERRIDE; |
186 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores") | 186 DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores") |
187 }; | 187 }; |
188 | 188 |
189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ | 189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_COOKIES_API_H_ |
OLD | NEW |