| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/debugger/devtools_http_protocol_handler.h" | 5 #include "chrome/browser/debugger/devtools_http_protocol_handler.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/thread.h" | 11 #include "base/thread.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
| 14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 15 #include "chrome/browser/browser_thread.h" |
| 16 #include "chrome/browser/debugger/devtools_client_host.h" | 16 #include "chrome/browser/debugger/devtools_client_host.h" |
| 17 #include "chrome/browser/debugger/devtools_manager.h" | 17 #include "chrome/browser/debugger/devtools_manager.h" |
| 18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | 19 #include "chrome/browser/tab_contents/tab_contents.h" |
| 20 #include "chrome/browser/tabs/tab_strip_model.h" | 20 #include "chrome/browser/tabs/tab_strip_model.h" |
| 21 #include "chrome/common/devtools_messages.h" | 21 #include "chrome/common/devtools_messages.h" |
| 22 #include "chrome/common/net/url_request_context_getter.h" | 22 #include "chrome/common/net/url_request_context_getter.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
| 25 #include "net/base/listen_socket.h" | 25 #include "net/base/listen_socket.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 TabStripModel* model = (*it)->tabstrip_model(); | 407 TabStripModel* model = (*it)->tabstrip_model(); |
| 408 for (int i = 0, size = model->count(); i < size; ++i) { | 408 for (int i = 0, size = model->count(); i < size; ++i) { |
| 409 NavigationController& controller = | 409 NavigationController& controller = |
| 410 model->GetTabContentsAt(i)->controller(); | 410 model->GetTabContentsAt(i)->controller(); |
| 411 if (controller.session_id().id() == session_id) | 411 if (controller.session_id().id() == session_id) |
| 412 return controller.tab_contents(); | 412 return controller.tab_contents(); |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 return NULL; | 415 return NULL; |
| 416 } | 416 } |
| OLD | NEW |