summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/dom_ui/proxy_handler.cc
blob: 36e592b750ab0f0003a0e7d137a5edde6b8b9c01 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// 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.

#include "chrome/browser/chromeos/dom_ui/proxy_handler.h"

#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/i18n/time_formatting.h"
#include "base/stl_util-inl.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/common/notification_service.h"
#include "grit/browser_resources.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"

ProxyHandler::ProxyHandler() {
}

ProxyHandler::~ProxyHandler() {
}

void ProxyHandler::GetLocalizedValues(
    DictionaryValue* localized_strings) {
  DCHECK(localized_strings);
  // Proxy page - ChromeOS
  localized_strings->SetString(L"proxyPage",
      l10n_util::GetString(IDS_OPTIONS_PROXY_TAB_LABEL));
  localized_strings->SetString(L"proxy_config_title",
     l10n_util::GetString(IDS_PROXY_CONFIG_TITLE));
  localized_strings->SetString(L"proxyDirectIternetConnection",
     l10n_util::GetString(IDS_PROXY_DIRECT_CONNECTION));

  localized_strings->SetString(L"proxyManual",
     l10n_util::GetString(IDS_PROXY_MANUAL_CONFIG));
  localized_strings->SetString(L"sameProxyProtocols",
     l10n_util::GetString(IDS_PROXY_SAME_FORALL));

  localized_strings->SetString(L"httpProxy",
     l10n_util::GetString(IDS_PROXY_HTTP_PROXY));
  localized_strings->SetString(L"secureHttpProxy",
     l10n_util::GetString(IDS_PROXY_HTTP_SECURE_HTTP_PROXY));
  localized_strings->SetString(L"ftpProxy",
     l10n_util::GetString(IDS_PROXY_FTP_PROXY));
  localized_strings->SetString(L"socksHost",
     l10n_util::GetString(IDS_PROXY_SOCKS_HOST));
  localized_strings->SetString(L"proxyAutomatic",
     l10n_util::GetString(IDS_PROXY_AUTOMATIC));
  localized_strings->SetString(L"proxyConfigUrl",
     l10n_util::GetString(IDS_PROXY_CONFIG_URL));
  localized_strings->SetString(L"advanced_proxy_config",
     l10n_util::GetString(IDS_PROXY_ADVANCED_CONFIG));
  localized_strings->SetString(L"addHost",
     l10n_util::GetString(IDS_PROXY_ADD_HOST));
  localized_strings->SetString(L"removeHost",
     l10n_util::GetString(IDS_PROXY_REMOVE_HOST));
  localized_strings->SetString(L"proxyPort",
     l10n_util::GetString(IDS_PROXY_PORT));
}