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

Side by Side Diff: components/devtools_http_handler/devtools_http_handler.cc

Issue 1145233002: Revert of Change WebContents::last_active_time_ to Time instead of Timeticks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 #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
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
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
OLDNEW
« no previous file with comments | « components/devtools_discovery/devtools_target_descriptor.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698