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

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

Issue 13032003: Browser Plugin: <webview> should inherit partition attribute of opener on attachment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/sequenced_task_runner_helpers.h" 13 #include "base/sequenced_task_runner_helpers.h"
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #endif 16 #endif
17 #include "content/common/browser_plugin/browser_plugin_message_enums.h" 17 #include "content/common/browser_plugin/browser_plugin_message_enums.h"
18 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h" 18 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h"
19 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" 19 #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
20 #include "content/renderer/mouse_lock_dispatcher.h" 20 #include "content/renderer/mouse_lock_dispatcher.h"
21 #include "content/renderer/render_view_impl.h" 21 #include "content/renderer/render_view_impl.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
23 23
24 struct BrowserPluginHostMsg_AutoSize_Params; 24 struct BrowserPluginHostMsg_AutoSize_Params;
25 struct BrowserPluginHostMsg_ResizeGuest_Params; 25 struct BrowserPluginHostMsg_ResizeGuest_Params;
26 struct BrowserPluginMsg_Attach_ACK_Params;
26 struct BrowserPluginMsg_LoadCommit_Params; 27 struct BrowserPluginMsg_LoadCommit_Params;
27 struct BrowserPluginMsg_UpdateRect_Params; 28 struct BrowserPluginMsg_UpdateRect_Params;
28 29
29 namespace content { 30 namespace content {
30 31
31 class BrowserPluginCompositingHelper; 32 class BrowserPluginCompositingHelper;
32 class BrowserPluginManager; 33 class BrowserPluginManager;
33 class MockBrowserPlugin; 34 class MockBrowserPlugin;
34 35
35 class CONTENT_EXPORT BrowserPlugin : 36 class CONTENT_EXPORT BrowserPlugin :
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // object goes out of scope in JavaScript. 313 // object goes out of scope in JavaScript.
313 void OnRequestObjectGarbageCollected(int request_id); 314 void OnRequestObjectGarbageCollected(int request_id);
314 // V8 garbage collection callback for |object|. 315 // V8 garbage collection callback for |object|.
315 static void WeakCallbackForPersistObject(v8::Isolate* isolate, 316 static void WeakCallbackForPersistObject(v8::Isolate* isolate,
316 v8::Persistent<v8::Value> object, 317 v8::Persistent<v8::Value> object,
317 void* param); 318 void* param);
318 319
319 // IPC message handlers. 320 // IPC message handlers.
320 // Please keep in alphabetical order. 321 // Please keep in alphabetical order.
321 void OnAdvanceFocus(int instance_id, bool reverse); 322 void OnAdvanceFocus(int instance_id, bool reverse);
323 void OnAttachACK(int instance_id,
324 const BrowserPluginMsg_Attach_ACK_Params& ack_params);
322 void OnBuffersSwapped(int instance_id, 325 void OnBuffersSwapped(int instance_id,
323 const gfx::Size& size, 326 const gfx::Size& size,
324 std::string mailbox_name, 327 std::string mailbox_name,
325 int gpu_route_id, 328 int gpu_route_id,
326 int gpu_host_id); 329 int gpu_host_id);
327 void OnGuestContentWindowReady(int instance_id, 330 void OnGuestContentWindowReady(int instance_id,
328 int content_window_routing_id); 331 int content_window_routing_id);
329 void OnGuestGone(int instance_id, int process_id, int status); 332 void OnGuestGone(int instance_id, int process_id, int status);
330 void OnGuestResponsive(int instance_id, int process_id); 333 void OnGuestResponsive(int instance_id, int process_id);
331 void OnGuestUnresponsive(int instance_id, int process_id); 334 void OnGuestUnresponsive(int instance_id, int process_id);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 427 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
425 // get called after BrowserPlugin has been destroyed. 428 // get called after BrowserPlugin has been destroyed.
426 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 429 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
427 430
428 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 431 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
429 }; 432 };
430 433
431 } // namespace content 434 } // namespace content
432 435
433 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 436 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698