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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 11066032: Browser Plugin: Update Guest WebContents Visibility on BrowserPlugin Visiblity Change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 2 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 | Annotate | Revision Log
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_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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 SkBitmap* sad_guest_; 184 SkBitmap* sad_guest_;
185 bool guest_crashed_; 185 bool guest_crashed_;
186 bool resize_pending_; 186 bool resize_pending_;
187 scoped_ptr<BrowserPluginHostMsg_ResizeGuest_Params> pending_resize_params_; 187 scoped_ptr<BrowserPluginHostMsg_ResizeGuest_Params> pending_resize_params_;
188 // True if we have ever sent a NavigateGuest message to the embedder. 188 // True if we have ever sent a NavigateGuest message to the embedder.
189 bool navigate_src_sent_; 189 bool navigate_src_sent_;
190 std::string src_; 190 std::string src_;
191 int process_id_; 191 int process_id_;
192 std::string storage_partition_id_; 192 std::string storage_partition_id_;
193 bool persist_storage_; 193 bool persist_storage_;
194 // Tracks the visibility of the browser plugin regardless of the whole
195 // embedder RenderView's visibility.
196 bool visible_;
194 typedef std::vector<v8::Persistent<v8::Function> > EventListeners; 197 typedef std::vector<v8::Persistent<v8::Function> > EventListeners;
195 typedef std::map<std::string, EventListeners> EventListenerMap; 198 typedef std::map<std::string, EventListeners> EventListenerMap;
196 EventListenerMap event_listener_map_; 199 EventListenerMap event_listener_map_;
197 #if defined(OS_WIN) 200 #if defined(OS_WIN)
198 base::SharedMemory shared_memory_; 201 base::SharedMemory shared_memory_;
199 #endif 202 #endif
200 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 203 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
201 }; 204 };
202 205
203 } // namespace content 206 } // namespace content
204 207
205 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 208 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698