Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: public/platform/WebConnectionType.h

Issue 289333003: Adds type information to the NetworkStateNotifier. Also allows for registration of observers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unused member Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebNetworkStateNotifier.cpp ('k') | public/web/WebNetworkStateNotifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebConnectionType.h
diff --git a/public/web/WebArrayBufferConverter.h b/public/platform/WebConnectionType.h
similarity index 79%
copy from public/web/WebArrayBufferConverter.h
copy to public/platform/WebConnectionType.h
index 1c5bde03179cb27f90b37bd11e78698ce884d74b..db5b2aac298271f647a60b6ff6e8a30a2ef99ee3 100644
--- a/public/web/WebArrayBufferConverter.h
+++ b/public/platform/WebConnectionType.h
@@ -28,24 +28,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebArrayBufferConverter_h
-#define WebArrayBufferConverter_h
-
-#include "public/platform/WebArrayBuffer.h"
-
-namespace v8 {
-class Value;
-template <class T> class Handle;
-}
+#ifndef WebConnectionType_h
+#define WebConnectionType_h
namespace blink {
-class WebArrayBufferConverter {
-public:
- BLINK_EXPORT static v8::Handle<v8::Value> toV8Value(WebArrayBuffer*);
- BLINK_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>);
+// Connection types from http://w3c.github.io/netinfo/.
+enum WebConnectionType {
+ ConnectionTypeCellular = 0,
+ ConnectionTypeBluetooth,
+ ConnectionTypeEthernet,
+ ConnectionTypeWifi,
+ ConnectionTypeOther,
+ ConnectionTypeNone,
+ ConnectionTypeLast = ConnectionTypeNone
};
} // namespace blink
-#endif // WebArrayBufferConverter_h
+#endif // WebConnectionType_h
« no previous file with comments | « Source/web/WebNetworkStateNotifier.cpp ('k') | public/web/WebNetworkStateNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698