bug 888268 - wifi tickler for mitigating 802.11 psp mode on android r=dougt

This commit is contained in:
Patrick McManus
2013-07-11 11:39:36 -04:00
parent 3f7761262a
commit 84ca191bc5
21 changed files with 566 additions and 7 deletions

View File

@@ -571,6 +571,8 @@ public:
nsGeoPosition* GeoPosition() { return mGeoPosition; }
double Bandwidth() { return mBandwidth; }
bool CanBeMetered() { return mCanBeMetered; }
bool IsWifi() { return mIsWifi; }
int DHCPGateway() { return mDHCPGateway; }
short ScreenOrientation() { return mScreenOrientation; }
RefCountedJavaObject* ByteBuffer() { return mByteBuffer; }
int Width() { return mWidth; }
@@ -605,6 +607,8 @@ protected:
nsRefPtr<nsGeoPosition> mGeoPosition;
double mBandwidth;
bool mCanBeMetered;
bool mIsWifi;
int mDHCPGateway;
short mScreenOrientation;
nsRefPtr<RefCountedJavaObject> mByteBuffer;
int mWidth, mHeight;
@@ -670,6 +674,8 @@ protected:
static jfieldID jBandwidthField;
static jfieldID jCanBeMeteredField;
static jfieldID jIsWifiField;
static jfieldID jDHCPGatewayField;
static jfieldID jScreenOrientationField;
static jfieldID jByteBufferField;