| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/devtools/protocol/io_handler.h" | 5 #include "content/browser/devtools/protocol/io_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 7 #include <stdint.h> | 8 #include <stdint.h> |
| 8 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 12 #include "base/memory/ref_counted_delete_on_message_loop.h" | 13 #include "base/memory/ref_counted_delete_on_message_loop.h" |
| 13 #include "base/memory/ref_counted_memory.h" | 14 #include "base/memory/ref_counted_memory.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "content/browser/devtools/devtools_io_context.h" | 16 #include "content/browser/devtools/devtools_io_context.h" |
| 16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 60 } |
| 60 | 61 |
| 61 Response IOHandler::Close(const std::string& handle) { | 62 Response IOHandler::Close(const std::string& handle) { |
| 62 return io_context_->Close(handle) ? Response::OK() | 63 return io_context_->Close(handle) ? Response::OK() |
| 63 : Response::InvalidParams("Invalid stream handle"); | 64 : Response::InvalidParams("Invalid stream handle"); |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace io | 67 } // namespace io |
| 67 } // namespace devtools | 68 } // namespace devtools |
| 68 } // namespace content | 69 } // namespace content |
| OLD | NEW |