Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: content/renderer/pepper/message_channel.h

Issue 1085733006: replace to be deprecated v8::PersistentValueMap with v8::GlobalValueMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/pepper/plugin_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/plugin_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698