| OLD | NEW |
| 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 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 private: | 314 private: |
| 315 base::MessageLoop* const message_loop_; | 315 base::MessageLoop* const message_loop_; |
| 316 ServerWrapper* const server_wrapper_; | 316 ServerWrapper* const server_wrapper_; |
| 317 const int connection_id_; | 317 const int connection_id_; |
| 318 scoped_refptr<DevToolsAgentHost> agent_host_; | 318 scoped_refptr<DevToolsAgentHost> agent_host_; |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 static bool TimeComparator(const DevToolsTargetDescriptor* desc1, | 321 static bool TimeComparator(const DevToolsTargetDescriptor* desc1, |
| 322 const DevToolsTargetDescriptor* desc2) { | 322 const DevToolsTargetDescriptor* desc2) { |
| 323 return desc1->GetLastActiveTime() > desc2->GetLastActiveTime(); | 323 return desc1->GetLastActivityTime() > desc2->GetLastActivityTime(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- | 326 // DevToolsHttpHandler::ServerSocketFactory ---------------------------------- |
| 327 | 327 |
| 328 scoped_ptr<net::ServerSocket> | 328 scoped_ptr<net::ServerSocket> |
| 329 DevToolsHttpHandler::ServerSocketFactory::CreateForHttpServer() { | 329 DevToolsHttpHandler::ServerSocketFactory::CreateForHttpServer() { |
| 330 return scoped_ptr<net::ServerSocket>(); | 330 return scoped_ptr<net::ServerSocket>(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 scoped_ptr<net::ServerSocket> | 333 scoped_ptr<net::ServerSocket> |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 id.c_str(), | 918 id.c_str(), |
| 919 host); | 919 host); |
| 920 dictionary->SetString( | 920 dictionary->SetString( |
| 921 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); | 921 kTargetDevtoolsFrontendUrlField, devtools_frontend_url); |
| 922 } | 922 } |
| 923 | 923 |
| 924 return dictionary; | 924 return dictionary; |
| 925 } | 925 } |
| 926 | 926 |
| 927 } // namespace devtools_http_handler | 927 } // namespace devtools_http_handler |
| OLD | NEW |