1 // Copyright (c) 2010 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 NET_HTTP_HTTP_AUTH_FILTER_WIN_H_ 6 #define NET_HTTP_HTTP_AUTH_FILTER_WIN_H_ 7 #pragma once 8 9 #include "build/build_config.h" 10 11 #if defined(OS_WIN) 12 #include "base/string16.h" 13 14 namespace net { 15 16 enum RegistryHiveType { 17 CURRENT_USER, 18 LOCAL_MACHINE 19 }; 20 21 namespace http_auth { 22 23 // The common path to all the registry keys containing domain zone information. 24 extern const char16 kRegistryInternetSettings[]; 25 extern const char16 kSettingsMachineOnly[]; 26 extern const char16* kRegistryEntries[3]; // L"http", L"https", and L"*" 27 28 extern const char16* GetRegistryWhitelistKey(); 29 // Override the whitelist key. Passing in NULL restores the default value. 30 extern void SetRegistryWhitelistKey(const char16* new_whitelist_key); 31 extern bool UseOnlyMachineSettings(); 32 33 } // namespace http_auth 34 35 } // namespace net 36 #endif // OS_WIN 37 38 #endif // NET_HTTP_HTTP_AUTH_FILTER_WIN_H_ 39