| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright (c) 2013 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_NET_COOKIE_STORE_UTIL_H_ | 
|  | 6 #define CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_ | 
|  | 7 | 
|  | 8 #include "content/public/browser/browser_context.h" | 
|  | 9 #include "content/public/browser/cookie_store_factory.h" | 
|  | 10 | 
|  | 11 class Profile; | 
|  | 12 | 
|  | 13 namespace net { | 
|  | 14 class CookieMonsterDelegate; | 
|  | 15 }  // namespace net | 
|  | 16 | 
|  | 17 namespace chrome_browser_net { | 
|  | 18 | 
|  | 19 // Returns true if cookie-like storage systems should enter record mode for | 
|  | 20 // debugging. | 
|  | 21 bool IsCookieRecordMode(); | 
|  | 22 | 
|  | 23 // Returns true if command line flags indicate that cookie-like storage systems | 
|  | 24 // should be forced to be in memory only. | 
|  | 25 bool ShouldUseInMemoryCookiesAndCache(); | 
|  | 26 | 
|  | 27 // Populates |configs| with a correctly configured set of CookieStores to | 
|  | 28 // handle http, https, chrome-extension and (depending on flags) file schemes. | 
|  | 29 void SetCookieStoreConfigs( | 
|  | 30     const base::FilePath& partition_path, | 
|  | 31     bool in_memory_partition, | 
|  | 32     bool is_default_partition, | 
|  | 33     content::CookieStoreConfig::SessionCookieMode session_cookie_mode, | 
|  | 34     quota::SpecialStoragePolicy* storage_policy, | 
|  | 35     net::CookieMonsterDelegate* cookie_delegate, | 
|  | 36     content::BrowserContext::CookieSchemeMap* configs); | 
|  | 37 | 
|  | 38 // Factory method for creating a CookieStore delegate that sends | 
|  | 39 // chrome::NOTIFICATION_COOKIE_CHANGED for the given profile. This | 
|  | 40 // delegate is stateless so only one is necessary per profile. | 
|  | 41 net::CookieMonsterDelegate* CreateCookieDelegate(Profile* profile); | 
|  | 42 | 
|  | 43 }  // namespace chrome_browser_net | 
|  | 44 | 
|  | 45 #endif  // CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_ | 
| OLD | NEW | 
|---|