summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 00:21:34 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 00:21:34 +0000
commitcec1b8d4524bd0ce53a7b08b4263c788a5b6d72b (patch)
treec229241e080953f2ff84966f1e969747b6129268 /chrome/common
parent50d8766af20bd48bce1094039153291e31c0e0bf (diff)
downloadchromium_src-cec1b8d4524bd0ce53a7b08b4263c788a5b6d72b.zip
chromium_src-cec1b8d4524bd0ce53a7b08b4263c788a5b6d72b.tar.gz
chromium_src-cec1b8d4524bd0ce53a7b08b4263c788a5b6d72b.tar.bz2
Implement chrome://plugins page that can disable plugins.
BUG=736 TEST=Go to chrome://plugins/. Should be able to enable/disable plugins. Enabled/disabled plugins should persist between sessions. Review URL: http://codereview.chromium.org/1085003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/pref_names.cc29
-rw-r--r--chrome/common/pref_names.h1
-rw-r--r--chrome/common/url_constants.cc4
-rw-r--r--chrome/common/url_constants.h4
4 files changed, 22 insertions, 16 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 62486e3..5e4f84d 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -163,38 +163,36 @@ const wchar_t kDnsStartupPrefetchList[] = L"StartupDNSPrefetchList";
// sub-resource hostnames (and expected latency benefits from pre-resolving such
// sub-resource hostnames).
// This list is adaptively grown and pruned.
-extern const wchar_t kDnsHostReferralList[] = L"HostReferralList";
+const wchar_t kDnsHostReferralList[] = L"HostReferralList";
// Is the cookie prompt expanded?
-extern const wchar_t kCookiePromptExpanded[] = L"cookieprompt.expanded";
+const wchar_t kCookiePromptExpanded[] = L"cookieprompt.expanded";
#if defined(USE_NSS)
// Prefs for SSLConfigServicePref. Currently, these are only present on
// and used by NSS-using OSes.
-extern const wchar_t kCertRevocationCheckingEnabled[] =
- L"ssl.rev_checking.enabled";
-extern const wchar_t kSSL2Enabled[] = L"ssl.ssl2.enabled";
-extern const wchar_t kSSL3Enabled[] = L"ssl.ssl3.enabled";
-extern const wchar_t kTLS1Enabled[] = L"ssl.tls1.enabled";
+const wchar_t kCertRevocationCheckingEnabled[] = L"ssl.rev_checking.enabled";
+const wchar_t kSSL2Enabled[] = L"ssl.ssl2.enabled";
+const wchar_t kSSL3Enabled[] = L"ssl.ssl3.enabled";
+const wchar_t kTLS1Enabled[] = L"ssl.tls1.enabled";
#endif
#if defined(OS_CHROMEOS)
// A string pref set to the timezone.
-extern const wchar_t kTimeZone[] = L"settings.datetime.timezone";
+const wchar_t kTimeZone[] = L"settings.datetime.timezone";
// A boolean pref set to true if TapToClick is being done in browser.
-extern const wchar_t kTapToClickEnabled[] =
- L"settings.touchpad.enable_tap_to_click";
+const wchar_t kTapToClickEnabled[] = L"settings.touchpad.enable_tap_to_click";
// A boolean pref set to true if VertEdgeScroll is being done in browser.
-extern const wchar_t kVertEdgeScrollEnabled[] =
+const wchar_t kVertEdgeScrollEnabled[] =
L"settings.touchpad.enable_vert_edge_scroll";
// A integer pref for the touchpad speed factor.
-extern const wchar_t kTouchpadSpeedFactor[] = L"settings.touchpad.speed_factor";
+const wchar_t kTouchpadSpeedFactor[] = L"settings.touchpad.speed_factor";
// A integer pref for the touchpad sensitivity.
-extern const wchar_t kTouchpadSensitivity[] = L"settings.touchpad.sensitivity";
+const wchar_t kTouchpadSensitivity[] = L"settings.touchpad.sensitivity";
#endif
// The disabled messages in IPC logging.
@@ -273,6 +271,9 @@ const wchar_t kExtensionsUIDeveloperMode[] = L"extensions.ui.developer_mode";
// actions toolbar.
const wchar_t kExtensionToolbarSize[] = L"extensions.toolbarsize";
+// List pref containing information (dictionaries) on plugins.
+const wchar_t kPluginsPluginsList[] = L"plugins.plugins_list";
+
// Boolean that indicates whether we should check if we are the default browser
// on start-up.
const wchar_t kCheckDefaultBrowser[] = L"browser.check_default_browser";
@@ -407,7 +408,7 @@ const wchar_t kStabilityStatsVersion[] =
// Build time, in seconds since an epoch, which is used to assure that stability
// metrics reported reflect stability of the same build.
-extern const wchar_t kStabilityStatsBuildTime[] =
+const wchar_t kStabilityStatsBuildTime[] =
L"user_experience_metrics.stability.stats_buildtime";
// False if we received a session end and either we crashed during processing
diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h
index a8b2de9..eecb1c1 100644
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -110,6 +110,7 @@ extern const wchar_t kCurrentThemeTints[];
extern const wchar_t kCurrentThemeDisplayProperties[];
extern const wchar_t kExtensionsUIDeveloperMode[];
extern const wchar_t kExtensionToolbarSize[];
+extern const wchar_t kPluginsPluginsList[];
extern const wchar_t kCheckDefaultBrowser[];
#if defined(OS_MACOSX)
extern const wchar_t kShowUpdatePromotionInfoBar[];
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index 9d24745..d770685 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -38,11 +38,11 @@ const char* kSavableSchemes[] = {
const char kAboutBlankURL[] = "about:blank";
const char kAboutCacheURL[] = "about:cache";
-const char kAboutNetInternalsURL[] = "about:net-internals";
const char kAboutCrashURL[] = "about:crash";
const char kAboutCreditsURL[] = "about:credits";
const char kAboutHangURL[] = "about:hang";
const char kAboutMemoryURL[] = "about:memory";
+const char kAboutNetInternalsURL[] = "about:net-internals";
const char kAboutShorthangURL[] = "about:shorthang";
const char kAboutTermsURL[] = "about:terms";
@@ -55,6 +55,7 @@ const char kChromeUIDevToolsURL[] = "chrome://devtools/";
const char kChromeUIDownloadsURL[] = "chrome://downloads/";
const char kChromeUIExtensionsURL[] = "chrome://extensions/";
const char kChromeUIHistoryURL[] = "chrome://history/";
+const char kChromeUIPluginsURL[] = "chrome://plugins/";
const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/";
const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
const char kChromeUIIPCURL[] = "chrome://about/ipc";
@@ -68,6 +69,7 @@ const char kChromeUIDownloadsHost[] = "downloads";
const char kChromeUIExtensionsHost[] = "extensions";
const char kChromeUIFavIconPath[] = "favicon";
const char kChromeUIHistoryHost[] = "history";
+const char kChromeUIPluginsHost[] = "plugins";
const char kChromeUIFileBrowseHost[] = "filebrowse";
const char kChromeUIMediaplayerHost[] = "mediaplayer";
const char kChromeUIInspectorHost[] = "inspector";
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h
index 665bd66..d4f2ee5 100644
--- a/chrome/common/url_constants.h
+++ b/chrome/common/url_constants.h
@@ -32,7 +32,7 @@ extern const char kStandardSchemeSeparator[];
// Null terminated list of schemes that are savable.
extern const char* kSavableSchemes[];
-// About URLs (including schmes).
+// About URLs (including schemes).
extern const char kAboutBlankURL[];
extern const char kAboutBrowserCrash[];
extern const char kAboutCacheURL[];
@@ -51,6 +51,7 @@ extern const char kChromeUIDevToolsURL[];
extern const char kChromeUIDownloadsURL[];
extern const char kChromeUIExtensionsURL[];
extern const char kChromeUIHistoryURL[];
+extern const char kChromeUIPluginsURL[];
extern const char kChromeUIFileBrowseURL[];
extern const char kChromeUIMediaplayerURL[];
extern const char kChromeUIIPCURL[];
@@ -66,6 +67,7 @@ extern const char kChromeUIDownloadsHost[];
extern const char kChromeUIExtensionsHost[];
extern const char kChromeUIFavIconPath[];
extern const char kChromeUIHistoryHost[];
+extern const char kChromeUIPluginsHost[];
extern const char kChromeUIFileBrowseHost[];
extern const char kChromeUIMediaplayerHost[];
extern const char kChromeUIInspectorHost[];