1e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke/*
281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch * Copyright (C) 2011 Google Inc. All rights reserved.
3e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *
4e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * Redistribution and use in source and binary forms, with or without
5e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * modification, are permitted provided that the following conditions are
6e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * met:
7e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *
8e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *     * Redistributions of source code must retain the above copyright
9e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * notice, this list of conditions and the following disclaimer.
10e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *     * Redistributions in binary form must reproduce the above
11e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * copyright notice, this list of conditions and the following disclaimer
12e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * in the documentation and/or other materials provided with the
13e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * distribution.
14e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *     * Neither the name of Google Inc. nor the names of its
15e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * contributors may be used to endorse or promote products derived from
16e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * this software without specific prior written permission.
17e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke *
18e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke */
30e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke
3181bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#ifndef WebNetworkStateNotifier_h
3281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#define WebNetworkStateNotifier_h
33e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke
3481bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#include "WebCommon.h"
35e458d70a0d18538346f41b503114c9ebe6b2ce12Leon Clarke
3681bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochnamespace WebKit {
3781bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch
3881bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochclass WebNetworkStateNotifier {
3981bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochpublic:
4081bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch    WEBKIT_API static void setOnLine(bool);
4181bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch
4281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochprivate:
4381bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch    WebNetworkStateNotifier();
4481bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch};
4581bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch
4681bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch} // namespace WebKit
4781bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch
4881bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#endif
49