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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.h

Issue 79020: linux (and some posix): multiprocess plugins compiling. (Closed)
Patch Set: rebased Created 11 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 | « chrome/plugin/plugin_thread.cc ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/common/ipc_channel.h" 14 #include "chrome/common/ipc_channel.h"
15 #include "chrome/common/transport_dib.h"
15 #include "third_party/npapi/bindings/npapi.h" 16 #include "third_party/npapi/bindings/npapi.h"
16 17
17 class GURL; 18 class GURL;
18 class PluginChannel; 19 class PluginChannel;
19 class WebPluginProxy; 20 class WebPluginProxy;
20 class WebPluginDelegate; 21 class WebPluginDelegate;
21 struct PluginMsg_Init_Params; 22 struct PluginMsg_Init_Params;
22 struct PluginMsg_DidReceiveResponseParams; 23 struct PluginMsg_DidReceiveResponseParams;
23 struct PluginMsg_URLRequestReply_Params; 24 struct PluginMsg_URLRequestReply_Params;
24 class WebCursor; 25 class WebCursor;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void OnHandleEvent(const NPEvent& event, bool* handled, 60 void OnHandleEvent(const NPEvent& event, bool* handled,
60 WebCursor* cursor); 61 WebCursor* cursor);
61 62
62 void OnPaint(const gfx::Rect& damaged_rect); 63 void OnPaint(const gfx::Rect& damaged_rect);
63 void OnDidPaint(); 64 void OnDidPaint();
64 65
65 void OnPrint(base::SharedMemoryHandle* shared_memory, size_t* size); 66 void OnPrint(base::SharedMemoryHandle* shared_memory, size_t* size);
66 67
67 void OnUpdateGeometry(const gfx::Rect& window_rect, 68 void OnUpdateGeometry(const gfx::Rect& window_rect,
68 const gfx::Rect& clip_rect, 69 const gfx::Rect& clip_rect,
69 const base::SharedMemoryHandle& windowless_buffer, 70 const TransportDIB::Id& windowless_buffer,
70 const base::SharedMemoryHandle& background_buffer); 71 const TransportDIB::Id& background_buffer);
71 void OnGetPluginScriptableObject(int* route_id, intptr_t* npobject_ptr); 72 void OnGetPluginScriptableObject(int* route_id, intptr_t* npobject_ptr);
72 void OnSendJavaScriptStream(const std::string& url, 73 void OnSendJavaScriptStream(const std::string& url,
73 const std::wstring& result, 74 const std::wstring& result,
74 bool success, bool notify_needed, 75 bool success, bool notify_needed,
75 intptr_t notify_data); 76 intptr_t notify_data);
76 77
77 void OnDidReceiveManualResponse( 78 void OnDidReceiveManualResponse(
78 const std::string& url, 79 const std::string& url,
79 const PluginMsg_DidReceiveResponseParams& params); 80 const PluginMsg_DidReceiveResponseParams& params);
80 void OnDidReceiveManualData(const std::vector<char>& buffer); 81 void OnDidReceiveManualData(const std::vector<char>& buffer);
81 void OnDidFinishManualLoading(); 82 void OnDidFinishManualLoading();
82 void OnDidManualLoadFail(); 83 void OnDidManualLoadFail();
83 void OnInstallMissingPlugin(); 84 void OnInstallMissingPlugin();
84 85
85 void OnHandleURLRequestReply( 86 void OnHandleURLRequestReply(
86 const PluginMsg_URLRequestReply_Params& params); 87 const PluginMsg_URLRequestReply_Params& params);
87 88
88 void OnURLRequestRouted(const std::string& url, bool notify_needed, 89 void OnURLRequestRouted(const std::string& url, bool notify_needed,
89 intptr_t notify_data); 90 intptr_t notify_data);
90 91
91 void CreateSharedBuffer(size_t size, 92 void CreateSharedBuffer(size_t size,
92 base::SharedMemory* shared_buf, 93 base::SharedMemory* shared_buf,
93 base::SharedMemoryHandle* remote_handle); 94 base::SharedMemoryHandle* remote_handle);
94 95
96 std::string mime_type_;
95 int instance_id_; 97 int instance_id_;
96 std::string mime_type_;
97 98
98 scoped_refptr<PluginChannel> channel_; 99 scoped_refptr<PluginChannel> channel_;
99 100
100 WebPluginDelegate* delegate_; 101 WebPluginDelegate* delegate_;
101 WebPluginProxy* webplugin_; 102 WebPluginProxy* webplugin_;
102 103
103 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); 104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
104 }; 105 };
105 106
106 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_thread.cc ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698