| 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 "chrome/browser/extensions/api/messaging/native_message_process_host.h" | 5 #include "chrome/browser/extensions/api/messaging/native_message_process_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "base/process_util.h" | |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest
.h" | 12 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest
.h" |
| 14 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" | 13 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" |
| 15 #include "chrome/common/chrome_version_info.h" | 14 #include "chrome/common/chrome_version_info.h" |
| 16 #include "chrome/common/extensions/features/feature.h" | 15 #include "chrome/common/extensions/features/feature.h" |
| 17 #include "extensions/common/constants.h" | 16 #include "extensions/common/constants.h" |
| 18 #include "net/base/file_stream.h" | 17 #include "net/base/file_stream.h" |
| 19 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 20 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 21 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 closed_ = true; | 331 closed_ = true; |
| 333 read_stream_.reset(); | 332 read_stream_.reset(); |
| 334 write_stream_.reset(); | 333 write_stream_.reset(); |
| 335 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, | 334 content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, |
| 336 base::Bind(&Client::CloseChannel, weak_client_ui_, | 335 base::Bind(&Client::CloseChannel, weak_client_ui_, |
| 337 destination_port_, error_message)); | 336 destination_port_, error_message)); |
| 338 } | 337 } |
| 339 } | 338 } |
| 340 | 339 |
| 341 } // namespace extensions | 340 } // namespace extensions |
| OLD | NEW |