| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/plugin_message_filter.h" | 5 #include "ppapi/proxy/plugin_message_filter.h" |
| 6 | 6 |
| 7 #include "ppapi/proxy/ppapi_messages.h" | 7 #include "ppapi/proxy/ppapi_messages.h" |
| 8 | 8 |
| 9 namespace pp { | 9 namespace ppapi { |
| 10 namespace proxy { | 10 namespace proxy { |
| 11 | 11 |
| 12 PluginMessageFilter::PluginMessageFilter( | 12 PluginMessageFilter::PluginMessageFilter( |
| 13 std::set<PP_Instance>* seen_instance_ids) | 13 std::set<PP_Instance>* seen_instance_ids) |
| 14 : seen_instance_ids_(seen_instance_ids), | 14 : seen_instance_ids_(seen_instance_ids), |
| 15 channel_(NULL) { | 15 channel_(NULL) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 PluginMessageFilter::~PluginMessageFilter() { | 18 PluginMessageFilter::~PluginMessageFilter() { |
| 19 } | 19 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 return; | 51 return; |
| 52 } | 52 } |
| 53 | 53 |
| 54 // This instance ID is new so we can return that it's usable and mark it as | 54 // This instance ID is new so we can return that it's usable and mark it as |
| 55 // used for future reference. | 55 // used for future reference. |
| 56 seen_instance_ids_->insert(instance); | 56 seen_instance_ids_->insert(instance); |
| 57 *usable = true; | 57 *usable = true; |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace proxy | 60 } // namespace proxy |
| 61 } // namespace pp | 61 } // namespace ppapi |
| OLD | NEW |