ipc/glue/InputStreamUtils.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef mozilla_ipc_InputStreamUtils_h
     6 #define mozilla_ipc_InputStreamUtils_h
     8 #include "mozilla/ipc/InputStreamParams.h"
     9 #include "nsCOMPtr.h"
    10 #include "nsIInputStream.h"
    11 #include "nsTArray.h"
    13 namespace mozilla {
    14 namespace ipc {
    16 class FileDescriptor;
    18 void
    19 SerializeInputStream(nsIInputStream* aInputStream,
    20                      InputStreamParams& aParams,
    21                      nsTArray<FileDescriptor>& aFileDescriptors);
    23 void
    24 SerializeInputStream(nsIInputStream* aInputStream,
    25                      OptionalInputStreamParams& aParams,
    26                      nsTArray<FileDescriptor>& aFileDescriptors);
    28 already_AddRefed<nsIInputStream>
    29 DeserializeInputStream(const InputStreamParams& aParams,
    30                        const nsTArray<FileDescriptor>& aFileDescriptors);
    32 already_AddRefed<nsIInputStream>
    33 DeserializeInputStream(const OptionalInputStreamParams& aParams,
    34                        const nsTArray<FileDescriptor>& aFileDescriptors);
    36 } // namespace ipc
    37 } // namespace mozilla
    39 #endif // mozilla_ipc_InputStreamUtils_h

mercurial