| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ | 6 #define EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // This methods will be implemented differently on different platforms. | 40 // This methods will be implemented differently on different platforms. |
| 41 void AsyncWorkStart() override; | 41 void AsyncWorkStart() override; |
| 42 bool Respond() override; | 42 bool Respond() override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 void SendPingPacket(); | 45 void SendPingPacket(); |
| 46 void OnCompleted(SendPacketResultCode result_code, | 46 void OnCompleted(SendPacketResultCode result_code, |
| 47 const std::string& ip, | 47 const std::string& ip, |
| 48 double latency); | 48 double latency); |
| 49 | 49 |
| 50 scoped_ptr<core_api::diagnostics::SendPacket::Params> parameters_; | 50 scoped_ptr<api::diagnostics::SendPacket::Params> parameters_; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace extensions | 53 } // namespace extensions |
| 54 | 54 |
| 55 #endif // EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ | 55 #endif // EXTENSIONS_BROWSER_API_DIAGNOSTICS_DIAGNOSTICS_API_H_ |
| OLD | NEW |