| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ | 6 #define CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 MessageQueueState plugin_message_queue_state_; | 185 MessageQueueState plugin_message_queue_state_; |
| 186 | 186 |
| 187 std::map<std::string, ppapi::ScopedPPVar> internal_named_properties_; | 187 std::map<std::string, ppapi::ScopedPPVar> internal_named_properties_; |
| 188 | 188 |
| 189 V8VarConverter var_converter_; | 189 V8VarConverter var_converter_; |
| 190 | 190 |
| 191 // A callback to invoke at shutdown to ensure we unregister ourselves as | 191 // A callback to invoke at shutdown to ensure we unregister ourselves as |
| 192 // Observers for sync messages. | 192 // Observers for sync messages. |
| 193 base::Closure unregister_observer_callback_; | 193 base::Closure unregister_observer_callback_; |
| 194 | 194 |
| 195 v8::StdPersistentValueMap<std::string, v8::FunctionTemplate> template_cache_; | 195 v8::StdGlobalValueMap<std::string, v8::FunctionTemplate> template_cache_; |
| 196 | 196 |
| 197 // This is used to ensure pending tasks will not fire after this object is | 197 // This is used to ensure pending tasks will not fire after this object is |
| 198 // destroyed. | 198 // destroyed. |
| 199 base::WeakPtrFactory<MessageChannel> weak_ptr_factory_; | 199 base::WeakPtrFactory<MessageChannel> weak_ptr_factory_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(MessageChannel); | 201 DISALLOW_COPY_AND_ASSIGN(MessageChannel); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace content | 204 } // namespace content |
| 205 | 205 |
| 206 #endif // CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ | 206 #endif // CONTENT_RENDERER_PEPPER_MESSAGE_CHANNEL_H_ |
| OLD | NEW |