dom/plugins/ipc/ChildAsyncCall.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 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     2  * vim: sw=2 ts=8 et :
     3  */
     4 /* This Source Code Form is subject to the terms of the Mozilla Public
     5  * License, v. 2.0. If a copy of the MPL was not distributed with this
     6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     8 #ifndef mozilla_plugins_ChildAsyncCall_h
     9 #define mozilla_plugins_ChildAsyncCall_h
    11 #include "PluginMessageUtils.h"
    12 #include "base/task.h"
    14 namespace mozilla {
    15 namespace plugins {
    17 typedef void (*PluginThreadCallback)(void*);
    19 class PluginInstanceChild;
    21 class ChildAsyncCall : public CancelableTask
    22 {
    23 public:
    24   ChildAsyncCall(PluginInstanceChild* instance,
    25                  PluginThreadCallback aFunc, void* aUserData);
    27   void Run() MOZ_OVERRIDE;
    28   void Cancel() MOZ_OVERRIDE;
    30 protected:
    31   PluginInstanceChild* mInstance;
    32   PluginThreadCallback mFunc;
    33   void* mData;
    35   void RemoveFromAsyncList();
    36 };
    38 } // namespace plugins
    39 } // namespace mozilla
    41 #endif // mozilla_plugins_ChildAsyncCall_h

mercurial