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_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
7 | 7 |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 scoped_ptr<BrowserPluginBindings> bindings_; | 147 scoped_ptr<BrowserPluginBindings> bindings_; |
148 scoped_ptr<BrowserPluginBackingStore> backing_store_; | 148 scoped_ptr<BrowserPluginBackingStore> backing_store_; |
149 TransportDIB* damage_buffer_; | 149 TransportDIB* damage_buffer_; |
150 gfx::Rect plugin_rect_; | 150 gfx::Rect plugin_rect_; |
151 // Bitmap for crashed plugin. Lazily initialized, non-owning pointer. | 151 // Bitmap for crashed plugin. Lazily initialized, non-owning pointer. |
152 SkBitmap* sad_guest_; | 152 SkBitmap* sad_guest_; |
153 bool guest_crashed_; | 153 bool guest_crashed_; |
154 bool resize_pending_; | 154 bool resize_pending_; |
155 // True if we have ever sent a NavigateGuest message to the embedder. | 155 // True if we have ever sent a NavigateGuest message to the embedder. |
156 bool navigate_src_sent_; | 156 bool navigate_src_sent_; |
157 int64 parent_frame_; | |
158 std::string src_; | 157 std::string src_; |
159 int process_id_; | 158 int process_id_; |
160 std::string storage_partition_id_; | 159 std::string storage_partition_id_; |
161 bool persist_storage_; | 160 bool persist_storage_; |
162 typedef std::vector<v8::Persistent<v8::Function> > EventListeners; | 161 typedef std::vector<v8::Persistent<v8::Function> > EventListeners; |
163 typedef std::map<std::string, EventListeners> EventListenerMap; | 162 typedef std::map<std::string, EventListeners> EventListenerMap; |
164 EventListenerMap event_listener_map_; | 163 EventListenerMap event_listener_map_; |
165 #if defined(OS_WIN) | 164 #if defined(OS_WIN) |
166 base::SharedMemory shared_memory_; | 165 base::SharedMemory shared_memory_; |
167 #endif | 166 #endif |
168 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 167 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
169 }; | 168 }; |
170 | 169 |
171 } // namespace content | 170 } // namespace content |
172 | 171 |
173 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 172 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |