OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/cookie_config/cookie_store_util.h" | 5 #include "components/cookie_config/cookie_store_util.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "build/build_config.h" |
8 #include "components/os_crypt/os_crypt.h" | 9 #include "components/os_crypt/os_crypt.h" |
9 #include "net/extras/sqlite/cookie_crypto_delegate.h" | 10 #include "net/extras/sqlite/cookie_crypto_delegate.h" |
10 | 11 |
11 namespace cookie_config { | 12 namespace cookie_config { |
12 | 13 |
13 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 14 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
14 namespace { | 15 namespace { |
15 | 16 |
16 // Use the operating system's mechanisms to encrypt cookies before writing | 17 // Use the operating system's mechanisms to encrypt cookies before writing |
17 // them to persistent store. Currently this only is done with desktop OS's | 18 // them to persistent store. Currently this only is done with desktop OS's |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { | 63 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { |
63 return g_cookie_crypto_delegate.Pointer(); | 64 return g_cookie_crypto_delegate.Pointer(); |
64 } | 65 } |
65 #else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 66 #else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
66 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { | 67 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { |
67 return NULL; | 68 return NULL; |
68 } | 69 } |
69 #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 70 #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
70 | 71 |
71 } // namespace cookie_config | 72 } // namespace cookie_config |
OLD | NEW |