Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / browser / net / browser_online_state_observer.h
blobfbb0db4bf7132b171ef323a535030ad2a62bf1fa
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_
6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "net/base/network_change_notifier.h"
11 namespace content {
13 // Listens for changes to the online state and manages sending
14 // updates to each RenderProcess via RenderProcessHost IPC.
15 class BrowserOnlineStateObserver
16 : public net::NetworkChangeNotifier::ConnectionTypeObserver {
17 public:
18 BrowserOnlineStateObserver();
19 virtual ~BrowserOnlineStateObserver();
21 // ConnectionTypeObserver implementation.
22 virtual void OnConnectionTypeChanged(
23 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
25 private:
26 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver);
29 } // namespace content
31 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_