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

Side by Side Diff: content/browser/net/browser_online_state_observer.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_
6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ 6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_
7 #pragma once
8 7
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "net/base/network_change_notifier.h" 9 #include "net/base/network_change_notifier.h"
11 10
12 // Listens for changes to the online state and manages sending 11 // Listens for changes to the online state and manages sending
13 // updates to each RenderProcess via RenderProcessHost IPC. 12 // updates to each RenderProcess via RenderProcessHost IPC.
14 class BrowserOnlineStateObserver 13 class BrowserOnlineStateObserver
15 : public net::NetworkChangeNotifier::ConnectionTypeObserver { 14 : public net::NetworkChangeNotifier::ConnectionTypeObserver {
16 public: 15 public:
17 BrowserOnlineStateObserver(); 16 BrowserOnlineStateObserver();
18 virtual ~BrowserOnlineStateObserver(); 17 virtual ~BrowserOnlineStateObserver();
19 18
20 // ConnectionTypeObserver implementation. 19 // ConnectionTypeObserver implementation.
21 virtual void OnConnectionTypeChanged( 20 virtual void OnConnectionTypeChanged(
22 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 21 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
23 22
24 private: 23 private:
25 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver); 24 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver);
26 }; 25 };
27 26
28 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ 27 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/mach_broker_mac.h ('k') | content/browser/net/view_blob_internals_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698