| 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/automation/extension_port_container.h" | 5 #include "chrome/browser/automation/extension_port_container.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/automation/automation_provider.h" | 11 #include "chrome/browser/automation/automation_provider.h" |
| 12 #include "chrome/browser/automation/extension_automation_constants.h" | 12 #include "chrome/browser/automation/extension_automation_constants.h" |
| 13 #include "chrome/browser/browser_thread.h" | |
| 14 #include "chrome/browser/extensions/extension_message_service.h" | 13 #include "chrome/browser/extensions/extension_message_service.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/renderer_host/render_process_host.h" | 15 #include "chrome/browser/renderer_host/render_process_host.h" |
| 17 #include "chrome/browser/renderer_host/render_view_host.h" | 16 #include "chrome/browser/renderer_host/render_view_host.h" |
| 18 #include "chrome/common/automation_messages.h" | 17 #include "chrome/common/automation_messages.h" |
| 19 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
| 20 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
| 21 | 20 |
| 22 // TODO(siggi): Find a more structured way to read and write JSON messages. | 21 // TODO(siggi): Find a more structured way to read and write JSON messages. |
| 23 | 22 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // This will delete the port and notify the other end of the disconnect. | 251 // This will delete the port and notify the other end of the disconnect. |
| 253 automation->RemovePortContainer(port); | 252 automation->RemovePortContainer(port); |
| 254 } | 253 } |
| 255 } else { | 254 } else { |
| 256 // We don't expect other messages here. | 255 // We don't expect other messages here. |
| 257 NOTREACHED(); | 256 NOTREACHED(); |
| 258 } | 257 } |
| 259 | 258 |
| 260 return true; | 259 return true; |
| 261 } | 260 } |
| OLD | NEW |