Chromium Code Reviews| Index: Source/core/page/NavigatorOnLine.h |
| diff --git a/Source/core/svg/SVGUnknownElement.cpp b/Source/core/page/NavigatorOnLine.h |
| similarity index 85% |
| copy from Source/core/svg/SVGUnknownElement.cpp |
| copy to Source/core/page/NavigatorOnLine.h |
| index ecc0d2f2f186434ad83a947d92cca241c2bfa3b0..934cecbed1a524508ede97937b9bf15e435d9d9f 100644 |
| --- a/Source/core/svg/SVGUnknownElement.cpp |
| +++ b/Source/core/page/NavigatorOnLine.h |
| @@ -28,14 +28,21 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#include "config.h" |
| -#include "core/svg/SVGUnknownElement.h" |
| +#ifndef NavigatorOnLine_h |
| +#define NavigatorOnLine_h |
| + |
| +#include "core/platform/network/NetworkStateNotifier.h" |
| namespace WebCore { |
| -SVGUnknownElement::SVGUnknownElement(const QualifiedName& tagName, Document* document) |
| - : SVGElement(tagName, document) |
| -{ |
| +class NavigatorOnLine { |
|
haraken
2013/08/20 10:28:51
Nit: Previously you used a namespace for this kind
do-not-use
2013/08/20 10:31:49
I used a namespace first then got linking errors a
|
| +public: |
| + static bool onLine(void*) |
| + { |
| + return networkStateNotifier().onLine(); |
| + } |
| +}; |
| + |
| } |
| -} // namespace WebCore |
| +#endif // NavigatorOnLine_h |