Chromium Code Reviews| Index: net/cookies/cookie_monster.h |
| diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h |
| index 5633baf2679c490d5ea0f639cf46d908e291c0f0..c00086aad3939d9f21129d04dd8ba455ac1cb0dc 100644 |
| --- a/net/cookies/cookie_monster.h |
| +++ b/net/cookies/cookie_monster.h |
| @@ -210,14 +210,6 @@ class NET_EXPORT CookieMonster : public CookieStore { |
| // the instance (i.e. as part of the instance initialization process). |
| void SetCookieableSchemes(const char* const schemes[], size_t num_schemes); |
| - // Resets the list of cookieable schemes to kDefaultCookieableSchemes with or |
| - // without 'file' being included. |
| - // |
| - // There are some unknowns about how to correctly handle file:// cookies, |
| - // and our implementation for this is not robust enough. This allows you |
| - // to enable support, but it should only be used for testing. Bug 1157243. |
| - void SetEnableFileScheme(bool accept); |
| - |
| // Instructs the cookie monster to not delete expired cookies. This is used |
| // in cases where the cookie monster is used as a data structure to keep |
| // arbitrary cookies. |
| @@ -312,6 +304,21 @@ class NET_EXPORT CookieMonster : public CookieStore { |
| const std::string& name, |
| const CookieChangedCallback& callback) override; |
| +#if defined(OS_ANDROID) |
| + // Resets the list of cookieable schemes to kDefaultCookieableSchemes with or |
| + // without 'file' being included. |
| + // |
| + // There are some unknowns about how to correctly handle file:// cookies, |
| + // and our implementation for this is not robust enough. This allows you |
| + // to enable support, but it should only be used for testing. Bug 1157243. |
|
erikwright (departed)
2015/03/30 14:22:30
Is this still accurate? Is WebView using it for te
|
| + // |
| + // TODO(mkwst): This method will be removed once we can deprecate and remove |
| + // the Android WebView 'CookieManager::setAcceptFileSchemeCookies' method. |
| + // Until then, this method only has effect on Android, and must not be used |
| + // outside a WebView context. |
| + void SetEnableFileScheme(bool accept); |
| +#endif |
| + |
| private: |
| // For queueing the cookie monster calls. |
| class CookieMonsterTask; |