Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 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. | |
| 4 | |
| 5 #ifndef NET_SPDY_SPDY_SESSION_TEST_UTIL_H_ | |
| 6 #define NET_SPDY_SPDY_SESSION_TEST_UTIL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/message_loop.h" | |
| 12 #include "base/pending_task.h" | |
| 13 | |
| 14 namespace net { | |
| 15 | |
| 16 class SpdySessionTestTaskObserver : public MessageLoop::TaskObserver { | |
|
Ryan Sleevi
2013/02/06 23:04:46
Please provide comments about what this class does
ramant (doing other things)
2013/02/07 02:11:07
Done.
| |
| 17 public: | |
| 18 SpdySessionTestTaskObserver(const std::string& file_name, | |
|
Ryan Sleevi
2013/02/06 23:04:46
Please provide comments on what these parameters a
ramant (doing other things)
2013/02/07 02:11:07
Done.
| |
| 19 const std::string& function_name); | |
| 20 | |
| 21 virtual ~SpdySessionTestTaskObserver(); | |
| 22 | |
| 23 virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE; | |
| 24 | |
| 25 virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE; | |
|
Ryan Sleevi
2013/02/06 23:04:46
style: Within net/ (and in general, within Chrome
ramant (doing other things)
2013/02/07 02:11:07
Done.
| |
| 26 | |
| 27 uint32 posted_count() const { return posted_count_; } | |
|
Ryan Sleevi
2013/02/06 23:04:46
Please provide comments explaining what this numbe
ramant (doing other things)
2013/02/07 02:11:07
Done.
| |
| 28 | |
| 29 private: | |
| 30 uint32 posted_count_; | |
| 31 std::string file_name_; | |
| 32 std::string function_name_; | |
| 33 }; | |
| 34 | |
| 35 } // namespace net | |
| 36 | |
| 37 #endif // NET_SPDY_SPDY_SESSION_TEST_UTIL_H_ | |
| OLD | NEW |