summaryrefslogtreecommitdiff
path: root/chromium/net/http/http_auth_filter_win.h
blob: 24305b511ecca35b1a12ff43a0b88102a69633b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_HTTP_HTTP_AUTH_FILTER_WIN_H_
#define NET_HTTP_HTTP_AUTH_FILTER_WIN_H_

#include "build/build_config.h"

#if defined(OS_WIN)
#include "base/strings/string16.h"

namespace net {

enum RegistryHiveType {
  CURRENT_USER,
  LOCAL_MACHINE
};

namespace http_auth {

// The common path to all the registry keys containing domain zone information.
extern const char16 kRegistryInternetSettings[];
extern const char16 kSettingsMachineOnly[];
extern const char16* kRegistryEntries[3];       // L"http", L"https", and L"*"

extern const char16* GetRegistryWhitelistKey();
// Override the whitelist key.  Passing in NULL restores the default value.
extern void SetRegistryWhitelistKey(const char16* new_whitelist_key);
extern bool UseOnlyMachineSettings();

}  // namespace http_auth

}  // namespace net
#endif  // OS_WIN

#endif  // NET_HTTP_HTTP_AUTH_FILTER_WIN_H_