Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Unified Diff: content/browser/net/browser_online_state_observer.cc

Issue 11343013: Move content\browser\net to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/net/browser_online_state_observer.cc
===================================================================
--- content/browser/net/browser_online_state_observer.cc (revision 164642)
+++ content/browser/net/browser_online_state_observer.cc (working copy)
@@ -7,6 +7,8 @@
#include "content/common/view_messages.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
+namespace content {
+
BrowserOnlineStateObserver::BrowserOnlineStateObserver() {
net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
}
@@ -17,10 +19,11 @@
void BrowserOnlineStateObserver::OnConnectionTypeChanged(
net::NetworkChangeNotifier::ConnectionType type) {
- for (content::RenderProcessHost::iterator it(
- content::RenderProcessHost::AllHostsIterator());
+ for (RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
!it.IsAtEnd(); it.Advance()) {
it.GetCurrentValue()->Send(new ViewMsg_NetworkStateChanged(
type != net::NetworkChangeNotifier::CONNECTION_NONE));
}
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698