| 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/package_manager/content_handler_connection.h" | 5 #include "mojo/package_manager/content_handler_connection.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include <utility> | 9 #include <utility> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 11 #include "mojo/shell/application_manager.h" | 13 #include "mojo/shell/application_manager.h" |
| 12 #include "mojo/shell/connect_to_application_params.h" | 14 #include "mojo/shell/connect_to_application_params.h" |
| 13 #include "mojo/shell/identity.h" | 15 #include "mojo/shell/identity.h" |
| 14 | 16 |
| 15 namespace mojo { | 17 namespace mojo { |
| 16 namespace package_manager { | 18 namespace package_manager { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 DCHECK(connection_closed_); | 69 DCHECK(connection_closed_); |
| 68 } | 70 } |
| 69 | 71 |
| 70 void ContentHandlerConnection::ApplicationDestructed() { | 72 void ContentHandlerConnection::ApplicationDestructed() { |
| 71 if (!--ref_count_) | 73 if (!--ref_count_) |
| 72 CloseConnection(); | 74 CloseConnection(); |
| 73 } | 75 } |
| 74 | 76 |
| 75 } // namespace package_manager | 77 } // namespace package_manager |
| 76 } // namespace mojo | 78 } // namespace mojo |
| OLD | NEW |