Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | package org.mozilla.pfs; |
michael@0 | 7 | |
michael@0 | 8 | public class PluginInfo { |
michael@0 | 9 | private java.lang.String name; |
michael@0 | 10 | private int pid; |
michael@0 | 11 | private java.lang.String version; |
michael@0 | 12 | private java.lang.String iconUrl; |
michael@0 | 13 | private java.lang.String XPILocation; |
michael@0 | 14 | private boolean installerShowsUI; |
michael@0 | 15 | private java.lang.String manualInstallationURL; |
michael@0 | 16 | private java.lang.String requestedMimetype; |
michael@0 | 17 | private java.lang.String licenseURL; |
michael@0 | 18 | |
michael@0 | 19 | public PluginInfo() { |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | public java.lang.String getName() { |
michael@0 | 23 | return name; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | public void setName(java.lang.String name) { |
michael@0 | 27 | this.name = name; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | public int getPid() { |
michael@0 | 31 | return pid; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | public void setPid(int pid) { |
michael@0 | 35 | this.pid = pid; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | public java.lang.String getVersion() { |
michael@0 | 39 | return version; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | public void setVersion(java.lang.String version) { |
michael@0 | 43 | this.version = version; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | public java.lang.String getIconUrl() { |
michael@0 | 47 | return iconUrl; |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | public void setIconUrl(java.lang.String iconUrl) { |
michael@0 | 51 | this.iconUrl = iconUrl; |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | public java.lang.String getXPILocation() { |
michael@0 | 55 | return XPILocation; |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | public void setXPILocation(java.lang.String XPILocation) { |
michael@0 | 59 | this.XPILocation = XPILocation; |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | public boolean isInstallerShowsUI() { |
michael@0 | 63 | return installerShowsUI; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | public void setInstallerShowsUI(boolean installerShowsUI) { |
michael@0 | 67 | this.installerShowsUI = installerShowsUI; |
michael@0 | 68 | } |
michael@0 | 69 | |
michael@0 | 70 | public java.lang.String getManualInstallationURL() { |
michael@0 | 71 | return manualInstallationURL; |
michael@0 | 72 | } |
michael@0 | 73 | |
michael@0 | 74 | public void setManualInstallationURL(java.lang.String manualInstallationURL) { |
michael@0 | 75 | this.manualInstallationURL = manualInstallationURL; |
michael@0 | 76 | } |
michael@0 | 77 | |
michael@0 | 78 | public java.lang.String getRequestedMimetype() { |
michael@0 | 79 | return requestedMimetype; |
michael@0 | 80 | } |
michael@0 | 81 | |
michael@0 | 82 | public void setRequestedMimetype(java.lang.String requestedMimetype) { |
michael@0 | 83 | this.requestedMimetype = requestedMimetype; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | public java.lang.String getLicenseURL() { |
michael@0 | 87 | return licenseURL; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | public void setLicenseURL(java.lang.String licenseURL) { |
michael@0 | 91 | this.licenseURL = licenseURL; |
michael@0 | 92 | } |
michael@0 | 93 | } |
michael@0 | 94 |