| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/np_channel_base.h" | 5 #include "content/child/npapi/np_channel_base.h" |
| 6 | 6 |
| 7 #include <stack> | 7 #include <stack> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "ipc/ipc_sync_message.h" | 13 #include "ipc/ipc_sync_message.h" |
| 14 | 14 |
| 15 #if defined(OS_POSIX) | 15 #if defined(OS_POSIX) |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 RouteToOwnerMap::iterator iter = route_to_owner_.find(route_id); | 331 RouteToOwnerMap::iterator iter = route_to_owner_.find(route_id); |
| 332 return iter != route_to_owner_.end() ? iter->second : default_owner_; | 332 return iter != route_to_owner_.end() ? iter->second : default_owner_; |
| 333 } | 333 } |
| 334 | 334 |
| 335 int NPChannelBase::GetExistingRouteForNPObjectOwner(NPP owner) { | 335 int NPChannelBase::GetExistingRouteForNPObjectOwner(NPP owner) { |
| 336 OwnerToRouteMap::iterator iter = owner_to_route_.find(owner); | 336 OwnerToRouteMap::iterator iter = owner_to_route_.find(owner); |
| 337 return iter != owner_to_route_.end() ? iter->second : MSG_ROUTING_NONE; | 337 return iter != owner_to_route_.end() ? iter->second : MSG_ROUTING_NONE; |
| 338 } | 338 } |
| 339 | 339 |
| 340 } // namespace content | 340 } // namespace content |
| OLD | NEW |