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

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

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "content/child/npapi/npobject_stub.h" 12 #include "content/child/npapi/npobject_stub.h"
13 #include "ipc/ipc_listener.h" 13 #include "ipc/ipc_listener.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 #include "third_party/npapi/bindings/npapi.h" 15 #include "third_party/npapi/bindings/npapi.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 struct PluginMsg_Init_Params; 20 struct PluginMsg_Init_Params;
21 struct PluginMsg_DidReceiveResponseParams; 21 struct PluginMsg_DidReceiveResponseParams;
22 struct PluginMsg_FetchURL_Params;
22 struct PluginMsg_UpdateGeometry_Param; 23 struct PluginMsg_UpdateGeometry_Param;
23 class WebCursor; 24 class WebCursor;
24 25
25 namespace WebKit { 26 namespace WebKit {
26 class WebInputEvent; 27 class WebInputEvent;
27 } 28 }
28 29
29 namespace content { 30 namespace content {
30 class PluginChannel; 31 class PluginChannel;
31 class WebPluginDelegateImpl; 32 class WebPluginDelegateImpl;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void OnDidReceiveManualResponse( 101 void OnDidReceiveManualResponse(
101 const GURL& url, 102 const GURL& url,
102 const PluginMsg_DidReceiveResponseParams& params); 103 const PluginMsg_DidReceiveResponseParams& params);
103 void OnDidReceiveManualData(const std::vector<char>& buffer); 104 void OnDidReceiveManualData(const std::vector<char>& buffer);
104 void OnDidFinishManualLoading(); 105 void OnDidFinishManualLoading();
105 void OnDidManualLoadFail(); 106 void OnDidManualLoadFail();
106 void OnHandleURLRequestReply(unsigned long resource_id, 107 void OnHandleURLRequestReply(unsigned long resource_id,
107 const GURL& url, 108 const GURL& url,
108 int notify_id); 109 int notify_id);
109 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); 110 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id);
111 void OnFetchURL(const PluginMsg_FetchURL_Params& params);
110 112
111 std::string mime_type_; 113 std::string mime_type_;
112 int instance_id_; 114 int instance_id_;
113 115
114 scoped_refptr<PluginChannel> channel_; 116 scoped_refptr<PluginChannel> channel_;
115 117
116 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; 118 base::WeakPtr<NPObjectStub> plugin_scriptable_object_;
117 WebPluginDelegateImpl* delegate_; 119 WebPluginDelegateImpl* delegate_;
118 WebPluginProxy* webplugin_; 120 WebPluginProxy* webplugin_;
119 bool in_destructor_; 121 bool in_destructor_;
120 122
121 // The url of the main frame hosting the plugin. 123 // The url of the main frame hosting the plugin.
122 GURL page_url_; 124 GURL page_url_;
123 125
124 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); 126 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
125 }; 127 };
126 128
127 } // namespace content 129 } // namespace content
128 130
129 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 131 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698