Implement SSLKEYLOGFILE for OpenSSL.
[chromium-blink-merge.git] / content / browser / net / browser_online_state_observer.cc
blob76f2bb350c8bd062d7acc56b0e1060c308dd2e4d
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 #include "content/browser/net/browser_online_state_observer.h"
7 #include "content/common/view_messages.h"
8 #include "content/browser/renderer_host/render_process_host_impl.h"
10 namespace content {
12 BrowserOnlineStateObserver::BrowserOnlineStateObserver() {
13 net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
16 BrowserOnlineStateObserver::~BrowserOnlineStateObserver() {
17 net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
20 void BrowserOnlineStateObserver::OnConnectionTypeChanged(
21 net::NetworkChangeNotifier::ConnectionType type) {
22 for (RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
23 !it.IsAtEnd(); it.Advance()) {
24 it.GetCurrentValue()->Send(new ViewMsg_NetworkTypeChanged(type));
28 } // namespace content