summaryrefslogtreecommitdiffstats
path: root/content/renderer/net_info_helper.h
diff options
context:
space:
mode:
authorjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 19:50:25 +0000
committerjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-29 19:50:25 +0000
commitd7ff5fb6c3edd0ee36bac1b50948ce2fc9c89f94 (patch)
treea4fb1e39c7d9dc672d88d770dee1eeeabac75c24 /content/renderer/net_info_helper.h
parent4baf67f8c9ee8cf5ce442b845338438a4b87fcac (diff)
downloadchromium_src-d7ff5fb6c3edd0ee36bac1b50948ce2fc9c89f94.zip
chromium_src-d7ff5fb6c3edd0ee36bac1b50948ce2fc9c89f94.tar.gz
chromium_src-d7ff5fb6c3edd0ee36bac1b50948ce2fc9c89f94.tar.bz2
Sends NetworkChangeNotifier connection type changes to Blink, to support NetInfo v3.
Design doc: https://docs.google.com/a/chromium.org/document/d/1LTk9uVMGi4kurzcF5ellsAJReTF31fFJMHrQwSVtBjc/ BUG=368358 Review URL: https://codereview.chromium.org/298803006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/net_info_helper.h')
-rw-r--r--content/renderer/net_info_helper.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/renderer/net_info_helper.h b/content/renderer/net_info_helper.h
new file mode 100644
index 0000000..a9e19a0
--- /dev/null
+++ b/content/renderer/net_info_helper.h
@@ -0,0 +1,18 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_NET_INFO_HELPER_H_
+#define CONTENT_PUBLIC_RENDERER_NET_INFO_HELPER_H_
+
+#include "net/base/network_change_notifier.h"
+#include "third_party/WebKit/public/platform/WebConnectionType.h"
+
+namespace content {
+
+blink::WebConnectionType NetConnectionTypeToWebConnectionType(
+ net::NetworkChangeNotifier::ConnectionType type);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_NET_INFO_HELPER_H_