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

Side by Side Diff: content/renderer/pepper/renderer_ppapi_host_impl.h

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/renderer_ppapi_host.h" 10 #include "content/public/renderer/renderer_ppapi_host.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual base::ProcessId GetPluginPID() const OVERRIDE; 96 virtual base::ProcessId GetPluginPID() const OVERRIDE;
97 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; 97 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
98 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; 98 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE;
99 virtual gfx::Point PluginPointToRenderView( 99 virtual gfx::Point PluginPointToRenderView(
100 PP_Instance instance, 100 PP_Instance instance,
101 const gfx::Point& pt) const OVERRIDE; 101 const gfx::Point& pt) const OVERRIDE;
102 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 102 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
103 base::PlatformFile handle, 103 base::PlatformFile handle,
104 bool should_close_source) OVERRIDE; 104 bool should_close_source) OVERRIDE;
105 virtual bool IsRunningInProcess() const OVERRIDE; 105 virtual bool IsRunningInProcess() const OVERRIDE;
106 virtual void CreateBrowserResourceHost(
107 PP_Instance instance,
108 const IPC::Message& nested_msg,
109 const base::Callback<void(int)>& callback) const OVERRIDE;
106 110
107 private: 111 private:
108 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, 112 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module,
109 ppapi::proxy::HostDispatcher* dispatcher, 113 ppapi::proxy::HostDispatcher* dispatcher,
110 const ppapi::PpapiPermissions& permissions); 114 const ppapi::PpapiPermissions& permissions);
111 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, 115 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module,
112 const ppapi::PpapiPermissions& permissions); 116 const ppapi::PpapiPermissions& permissions);
113 117
114 // Retrieves the plugin instance object associated with the given PP_Instance 118 // Retrieves the plugin instance object associated with the given PP_Instance
115 // and validates that it is one of the instances associated with our module. 119 // and validates that it is one of the instances associated with our module.
(...skipping 17 matching lines...) Expand all
133 137
134 // Whether the plugin is running in process. 138 // Whether the plugin is running in process.
135 bool is_running_in_process_; 139 bool is_running_in_process_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); 141 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl);
138 }; 142 };
139 143
140 } // namespace content 144 } // namespace content
141 145
142 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 146 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/pepper/renderer_ppapi_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698