| 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 "mojo/services/network/http_connection_impl.h" | 5 #include "mojo/services/network/http_connection_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 14 #include "mojo/common/handle_watcher.h" | 15 #include "mojo/common/handle_watcher.h" |
| 15 #include "mojo/services/network/http_server_impl.h" | 16 #include "mojo/services/network/http_server_impl.h" |
| 16 #include "mojo/services/network/net_adapters.h" | 17 #include "mojo/services/network/net_adapters.h" |
| 17 #include "mojo/services/network/public/cpp/web_socket_read_queue.h" | 18 #include "mojo/services/network/public/cpp/web_socket_read_queue.h" |
| 18 #include "mojo/services/network/public/cpp/web_socket_write_queue.h" | 19 #include "mojo/services/network/public/cpp/web_socket_write_queue.h" |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // The close operation is initiated by this object. | 424 // The close operation is initiated by this object. |
| 424 NotifyOwnerCloseIfAllDone(); | 425 NotifyOwnerCloseIfAllDone(); |
| 425 } else { | 426 } else { |
| 426 // The close operation is initiated by |web_socket_|; start closing this | 427 // The close operation is initiated by |web_socket_|; start closing this |
| 427 // object. | 428 // object. |
| 428 Close(); | 429 Close(); |
| 429 } | 430 } |
| 430 } | 431 } |
| 431 | 432 |
| 432 } // namespace mojo | 433 } // namespace mojo |
| OLD | NEW |