toolkit/crashreporter/client/crashreporter_gtk_common.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.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef CRASHREPORTER_GTK_COMMON_H__
michael@0 6 #define CRASHREPORTER_GTK_COMMON_H__
michael@0 7
michael@0 8 #include <glib.h>
michael@0 9 #include <gtk/gtk.h>
michael@0 10
michael@0 11 #include <string>
michael@0 12 #include <vector>
michael@0 13
michael@0 14 const char kIniFile[] = "crashreporter.ini";
michael@0 15
michael@0 16 extern GtkWidget* gWindow;
michael@0 17 extern GtkWidget* gSubmitReportCheck;
michael@0 18 extern GtkWidget* gIncludeURLCheck;
michael@0 19 extern GtkWidget* gThrobber;
michael@0 20 extern GtkWidget* gProgressLabel;
michael@0 21 extern GtkWidget* gCloseButton;
michael@0 22 extern GtkWidget* gRestartButton;
michael@0 23
michael@0 24 extern std::vector<std::string> gRestartArgs;
michael@0 25 extern GThread* gSendThreadID;
michael@0 26
michael@0 27 extern bool gInitialized;
michael@0 28 extern bool gDidTrySend;
michael@0 29 extern std::string gDumpFile;
michael@0 30 extern StringTable gQueryParameters;
michael@0 31 extern std::string gHttpProxy;
michael@0 32 extern std::string gAuth;
michael@0 33 extern std::string gCACertificateFile;
michael@0 34 extern std::string gSendURL;
michael@0 35 extern std::string gURLParameter;
michael@0 36
michael@0 37 void LoadProxyinfo();
michael@0 38 gpointer SendThread(gpointer args);
michael@0 39 gboolean WindowDeleted(GtkWidget* window,
michael@0 40 GdkEvent* event,
michael@0 41 gpointer userData);
michael@0 42 gboolean check_escape(GtkWidget* window, GdkEventKey* event, gpointer data);
michael@0 43 void SubmitReportChecked(GtkButton* sender, gpointer userData);
michael@0 44 void IncludeURLClicked(GtkButton* sender, gpointer userData);
michael@0 45 void CloseClicked(GtkButton* button,
michael@0 46 gpointer userData);
michael@0 47 void RestartClicked(GtkButton* button,
michael@0 48 gpointer userData);
michael@0 49
michael@0 50 #endif // CRASHREPORTER_GTK_COMMON_H__

mercurial