update plugin for Firefox 25.0.1 / Linux

Change-Id: I33646651c4fde5e4571477e38839a35d4fe6d7ed
diff --git a/xpcom/Makefile b/xpcom/Makefile
index 91844e2..729efc5 100644
--- a/xpcom/Makefile
+++ b/xpcom/Makefile
@@ -230,6 +230,14 @@
 NSPR_DLLFLAGS = -lnss3
 endif
 else
+ifeq ($(BROWSER),ff251)
+GECKO_VERSION   = 25.0.1
+CFLAGS += -DGECKO_VERSION=25001
+GECKO_DLLFLAGS = -lxpcomglue_s
+ifeq ($(OS),mac)
+NSPR_DLLFLAGS = -lnss3
+endif
+else
 $(error Unrecognized BROWSER of $(BROWSER) - options are ff3, ff4, ff5, ...)
 endif
 endif
@@ -257,6 +265,7 @@
 endif
 endif
 endif
+endif
 
 CFLAGS += -fshort-wchar
 CXXFLAGS = $(CXXONLYFLAGS) $(CFLAGS)
@@ -333,63 +342,6 @@
 generate-install:: $(EXTENSION_OUTDIR) install-template.rdf
 	sed -e s/GWT_DEV_PLUGIN_VERSION/$(VERSION)/ install-template.rdf >$(INSTALL_RDF)
 
-linuxplatforms:
-	$(MAKE) lib BROWSER=ff3 ARCH=x86
-	$(MAKE) lib BROWSER=ff3+ ARCH=x86
-	$(MAKE) lib BROWSER=ff35 ARCH=x86
-	$(MAKE) lib BROWSER=ff36 ARCH=x86
-	$(MAKE) lib BROWSER=ff40 ARCH=x86
-	$(MAKE) lib BROWSER=ff50 ARCH=x86
-	$(MAKE) lib BROWSER=ff60 ARCH=x86
-	$(MAKE) lib BROWSER=ff70 ARCH=x86
-	$(MAKE) lib BROWSER=ff80 ARCH=x86
-	$(MAKE) lib BROWSER=ff90 ARCH=x86
-	$(MAKE) lib BROWSER=ff100 ARCH=x86
-	$(MAKE) lib BROWSER=ff110 ARCH=x86
-	$(MAKE) lib BROWSER=ff120 ARCH=x86
-	$(MAKE) lib BROWSER=ff130 ARCH=x86
-	$(MAKE) lib BROWSER=ff140 ARCH=x86
-	$(MAKE) lib BROWSER=ff150 ARCH=x86
-	$(MAKE) lib BROWSER=ff160 ARCH=x86
-	$(MAKE) lib BROWSER=ff170 ARCH=x86
-	$(MAKE) lib BROWSER=ff3 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff3+ ARCH=x86_64
-	$(MAKE) lib BROWSER=ff35 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff36 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff40 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff50 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff60 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff70 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff80 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff90 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff100 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff110 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff120 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff130 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff140 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff150 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff160 ARCH=x86_64
-	$(MAKE) lib BROWSER=ff170 ARCH=x86_64
-
-macplatforms:
-	$(MAKE) lib BROWSER=ff3
-	$(MAKE) lib BROWSER=ff35
-	$(MAKE) lib BROWSER=ff36
-	$(MAKE) lib BROWSER=ff40
-	$(MAKE) lib BROWSER=ff50
-	$(MAKE) lib BROWSER=ff60
-	$(MAKE) lib BROWSER=ff70
-	$(MAKE) lib BROWSER=ff80
-	$(MAKE) lib BROWSER=ff90
-	$(MAKE) lib BROWSER=ff100
-	$(MAKE) lib BROWSER=ff110
-	$(MAKE) lib BROWSER=ff120
-	$(MAKE) lib BROWSER=ff130
-	$(MAKE) lib BROWSER=ff140
-	$(MAKE) lib BROWSER=ff150
-	$(MAKE) lib BROWSER=ff160
-	$(MAKE) lib BROWSER=ff170
-
 
 SRCS =	\
 		ExternalWrapper.cpp \
diff --git a/xpcom/prebuilt/extension/chrome.manifest b/xpcom/prebuilt/extension/chrome.manifest
index a2d4a08..9a6a3f4 100644
--- a/xpcom/prebuilt/extension/chrome.manifest
+++ b/xpcom/prebuilt/extension/chrome.manifest
@@ -151,11 +151,19 @@
 binary-component lib/Darwin-gcc3/ff240/libgwt_dev_ff240.dylib ABI=Darwin_x86-gcc3 appversion<=24.0.*
 
 # Firefox 25
-binary-component lib/Linux_x86_64-gcc3/ff250/libgwt_dev_ff250.so ABI=Linux_x86_64-gcc3 appversion<=25.0.*
-binary-component lib/Linux_x86-gcc3/ff250/libgwt_dev_ff250.so ABI=Linux_x86-gcc3 appversion<=25.0.*
-binary-component lib/WINNT_x86-msvc/ff250/xpGwtDevPlugin.dll ABI=WINNT_x86-msvc appversion<=25.0.*
-binary-component lib/Darwin-gcc3/ff250/libgwt_dev_ff250.dylib ABI=Darwin_x86_64-gcc3 appversion<=25.0.*
-binary-component lib/Darwin-gcc3/ff250/libgwt_dev_ff250.dylib ABI=Darwin_x86-gcc3 appversion<=25.0.*
+binary-component lib/Linux_x86_64-gcc3/ff250/libgwt_dev_ff250.so ABI=Linux_x86_64-gcc3 appversion<=25.0.0
+binary-component lib/Linux_x86-gcc3/ff250/libgwt_dev_ff250.so ABI=Linux_x86-gcc3 appversion<=25.0.0
+binary-component lib/WINNT_x86-msvc/ff250/xpGwtDevPlugin.dll ABI=WINNT_x86-msvc appversion<=25.0.0
+binary-component lib/Darwin-gcc3/ff250/libgwt_dev_ff250.dylib ABI=Darwin_x86_64-gcc3 appversion<=25.0.0
+binary-component lib/Darwin-gcc3/ff250/libgwt_dev_ff250.dylib ABI=Darwin_x86-gcc3 appversion<=25.0.0
+
+# Firefox 25.0.1
+binary-component lib/Linux_x86_64-gcc3/ff251/libgwt_dev_ff251.so ABI=Linux_x86_64-gcc3 appversion<=25.0.*
+binary-component lib/Linux_x86-gcc3/ff251/libgwt_dev_ff251.so ABI=Linux_x86-gcc3 appversion<=25.0.*
+binary-component lib/WINNT_x86-msvc/ff251/xpGwtDevPlugin.dll ABI=WINNT_x86-msvc appversion<=25.0.*
+binary-component lib/Darwin-gcc3/ff251/libgwt_dev_ff251.dylib ABI=Darwin_x86_64-gcc3 appversion<=25.0.*
+binary-component lib/Darwin-gcc3/ff251/libgwt_dev_ff251.dylib ABI=Darwin_x86-gcc3 appversion<=25.0.*
+
 
 interfaces components/IOOPHM.xpt
 contract @gwt.google.com/ExternalWrapper;1 {028DD88B-6D65-401D-AAFD-17E497D15D09}
diff --git a/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff251/libgwt_dev_ff251.so b/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff251/libgwt_dev_ff251.so
new file mode 100755
index 0000000..fac5792
--- /dev/null
+++ b/xpcom/prebuilt/extension/lib/Linux_x86-gcc3/ff251/libgwt_dev_ff251.so
Binary files differ
diff --git a/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff251/libgwt_dev_ff251.so b/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff251/libgwt_dev_ff251.so
new file mode 100755
index 0000000..eaa0d2c
--- /dev/null
+++ b/xpcom/prebuilt/extension/lib/Linux_x86_64-gcc3/ff251/libgwt_dev_ff251.so
Binary files differ
diff --git a/xpcom/prebuilt/ff251/include/IOOPHM.h b/xpcom/prebuilt/ff251/include/IOOPHM.h
new file mode 100644
index 0000000..4a152ce
--- /dev/null
+++ b/xpcom/prebuilt/ff251/include/IOOPHM.h
@@ -0,0 +1,105 @@
+/*
+ * DO NOT EDIT.  THIS FILE IS GENERATED FROM IOOPHM.idl
+ */
+
+#ifndef __gen_IOOPHM_h__
+#define __gen_IOOPHM_h__
+
+
+#ifndef __gen_nsISupports_h__
+#include "nsISupports.h"
+#endif
+
+/* For IDL files that don't want to include root IDL files. */
+#ifndef NS_NO_VTABLE
+#define NS_NO_VTABLE
+#endif
+class nsIDOMWindow; /* forward declaration */
+
+
+/* starting interface:    IOOPHM */
+#define IOOPHM_IID_STR "90cef17b-c3fe-4251-af68-4381b3d938a0"
+
+#define IOOPHM_IID \
+  {0x90cef17b, 0xc3fe, 0x4251, \
+    { 0xaf, 0x68, 0x43, 0x81, 0xb3, 0xd9, 0x38, 0xa0 }}
+
+class NS_NO_VTABLE IOOPHM : public nsISupports {
+ public: 
+
+  NS_DECLARE_STATIC_IID_ACCESSOR(IOOPHM_IID)
+
+  /* boolean init (in nsIDOMWindow window); */
+  NS_IMETHOD Init(nsIDOMWindow *window, bool *_retval) = 0;
+
+  /* boolean connect (in ACString url, in ACString sessionKey, in ACString addr, in ACString moduleName, in ACString hostedHtmlVersion); */
+  NS_IMETHOD Connect(const nsACString & url, const nsACString & sessionKey, const nsACString & addr, const nsACString & moduleName, const nsACString & hostedHtmlVersion, bool *_retval) = 0;
+
+};
+
+  NS_DEFINE_STATIC_IID_ACCESSOR(IOOPHM, IOOPHM_IID)
+
+/* Use this macro when declaring classes that implement this interface. */
+#define NS_DECL_IOOPHM \
+  NS_IMETHOD Init(nsIDOMWindow *window, bool *_retval); \
+  NS_IMETHOD Connect(const nsACString & url, const nsACString & sessionKey, const nsACString & addr, const nsACString & moduleName, const nsACString & hostedHtmlVersion, bool *_retval); 
+
+/* Use this macro to declare functions that forward the behavior of this interface to another object. */
+#define NS_FORWARD_IOOPHM(_to) \
+  NS_IMETHOD Init(nsIDOMWindow *window, bool *_retval) { return _to Init(window, _retval); } \
+  NS_IMETHOD Connect(const nsACString & url, const nsACString & sessionKey, const nsACString & addr, const nsACString & moduleName, const nsACString & hostedHtmlVersion, bool *_retval) { return _to Connect(url, sessionKey, addr, moduleName, hostedHtmlVersion, _retval); } 
+
+/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
+#define NS_FORWARD_SAFE_IOOPHM(_to) \
+  NS_IMETHOD Init(nsIDOMWindow *window, bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(window, _retval); } \
+  NS_IMETHOD Connect(const nsACString & url, const nsACString & sessionKey, const nsACString & addr, const nsACString & moduleName, const nsACString & hostedHtmlVersion, bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(url, sessionKey, addr, moduleName, hostedHtmlVersion, _retval); } 
+
+#if 0
+/* Use the code below as a template for the implementation class for this interface. */
+
+/* Header file */
+class _MYCLASS_ : public IOOPHM
+{
+public:
+  NS_DECL_ISUPPORTS
+  NS_DECL_IOOPHM
+
+  _MYCLASS_();
+
+private:
+  ~_MYCLASS_();
+
+protected:
+  /* additional members */
+};
+
+/* Implementation file */
+NS_IMPL_ISUPPORTS1(_MYCLASS_, IOOPHM)
+
+_MYCLASS_::_MYCLASS_()
+{
+  /* member initializers and constructor code */
+}
+
+_MYCLASS_::~_MYCLASS_()
+{
+  /* destructor code */
+}
+
+/* boolean init (in nsIDOMWindow window); */
+NS_IMETHODIMP _MYCLASS_::Init(nsIDOMWindow *window, bool *_retval)
+{
+    return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+/* boolean connect (in ACString url, in ACString sessionKey, in ACString addr, in ACString moduleName, in ACString hostedHtmlVersion); */
+NS_IMETHODIMP _MYCLASS_::Connect(const nsACString & url, const nsACString & sessionKey, const nsACString & addr, const nsACString & moduleName, const nsACString & hostedHtmlVersion, bool *_retval)
+{
+    return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+/* End of implementation class template. */
+#endif
+
+
+#endif /* __gen_IOOPHM_h__ */