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

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

Issue 23011018: Modify Pepper CreateResourceHostFromHost to create multiple hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual base::ProcessId GetPluginPID() const OVERRIDE; 85 virtual base::ProcessId GetPluginPID() const OVERRIDE;
86 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; 86 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
87 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; 87 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE;
88 virtual gfx::Point PluginPointToRenderView( 88 virtual gfx::Point PluginPointToRenderView(
89 PP_Instance instance, 89 PP_Instance instance,
90 const gfx::Point& pt) const OVERRIDE; 90 const gfx::Point& pt) const OVERRIDE;
91 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 91 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
92 base::PlatformFile handle, 92 base::PlatformFile handle,
93 bool should_close_source) OVERRIDE; 93 bool should_close_source) OVERRIDE;
94 virtual bool IsRunningInProcess() const OVERRIDE; 94 virtual bool IsRunningInProcess() const OVERRIDE;
95 virtual void CreateBrowserResourceHost( 95 virtual void CreateBrowserResourceHosts(
96 PP_Instance instance, 96 PP_Instance instance,
97 const IPC::Message& nested_msg, 97 const std::vector<IPC::Message>& nested_msgs,
98 const base::Callback<void(int)>& callback) const OVERRIDE; 98 const base::Callback<void(
99 const std::vector<int>&)>& callback) const OVERRIDE;
99 100
100 private: 101 private:
101 RendererPpapiHostImpl(PluginModule* module, 102 RendererPpapiHostImpl(PluginModule* module,
102 ppapi::proxy::HostDispatcher* dispatcher, 103 ppapi::proxy::HostDispatcher* dispatcher,
103 const ppapi::PpapiPermissions& permissions); 104 const ppapi::PpapiPermissions& permissions);
104 RendererPpapiHostImpl(PluginModule* module, 105 RendererPpapiHostImpl(PluginModule* module,
105 const ppapi::PpapiPermissions& permissions); 106 const ppapi::PpapiPermissions& permissions);
106 107
107 // Retrieves the plugin instance object associated with the given PP_Instance 108 // Retrieves the plugin instance object associated with the given PP_Instance
108 // and validates that it is one of the instances associated with our module. 109 // and validates that it is one of the instances associated with our module.
(...skipping 16 matching lines...) Expand all
125 126
126 // Whether the plugin is running in process. 127 // Whether the plugin is running in process.
127 bool is_running_in_process_; 128 bool is_running_in_process_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); 130 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl);
130 }; 131 };
131 132
132 } // namespace content 133 } // namespace content
133 134
134 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 135 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698