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

Side by Side Diff: net/tools/gdig/file_net_log.h

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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 unified diff | Download patch
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 NET_TOOLS_GDIG_FILE_NET_LOG_H_ 5 #ifndef NET_TOOLS_GDIG_FILE_NET_LOG_H_
6 #define NET_TOOLS_GDIG_FILE_NET_LOG_H_ 6 #define NET_TOOLS_GDIG_FILE_NET_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "net/base/net_log.h" 13 #include "net/base/net_log.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 // FileNetLogObserver is a simple implementation of NetLog::ThreadSafeObserver 17 // FileNetLogObserver is a simple implementation of NetLog::ThreadSafeObserver
18 // that prints out all the events received into the stream passed 18 // that prints out all the events received into the stream passed
19 // to the constructor. 19 // to the constructor.
20 class FileNetLogObserver : public NetLog::ThreadSafeObserver { 20 class FileNetLogObserver : public NetLog::ThreadSafeObserver {
21 public: 21 public:
22 explicit FileNetLogObserver(FILE* destination); 22 explicit FileNetLogObserver(FILE* destination);
23 virtual ~FileNetLogObserver(); 23 virtual ~FileNetLogObserver();
24 24
25 // NetLog::ThreadSafeObserver implementation: 25 // NetLog::ThreadSafeObserver implementation:
26 virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE; 26 virtual void OnAddEntry(const net::NetLog::Entry& entry) override;
27 27
28 private: 28 private:
29 FILE* const destination_; 29 FILE* const destination_;
30 base::Lock lock_; 30 base::Lock lock_;
31 31
32 base::Time first_event_time_; 32 base::Time first_event_time_;
33 }; 33 };
34 34
35 } // namespace net 35 } // namespace net
36 36
37 #endif // NET_TOOLS_GDIG_FILE_NET_LOG_H_ 37 #endif // NET_TOOLS_GDIG_FILE_NET_LOG_H_
OLDNEW
« no previous file with comments | « net/tools/flip_server/streamer_interface.h ('k') | net/tools/get_server_time/get_server_time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698