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

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

Issue 605593002: PPAPI: Support sending browser-hosted resources synchronously Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content_browsertests Created 6 years, 1 month 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
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"
11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" 11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h"
12 #include "ppapi/host/ppapi_host.h" 12 #include "ppapi/host/ppapi_host.h"
13 #include "ppapi/proxy/serialized_structs.h"
13 14
14 namespace IPC { 15 namespace IPC {
15 class Sender; 16 class Sender;
16 } 17 }
17 18
18 namespace ppapi { 19 namespace ppapi {
19 20
20 namespace proxy { 21 namespace proxy {
21 class HostDispatcher; 22 class HostDispatcher;
22 } 23 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool HasUserGesture(PP_Instance instance) const override; 88 bool HasUserGesture(PP_Instance instance) const override;
88 int GetRoutingIDForWidget(PP_Instance instance) const override; 89 int GetRoutingIDForWidget(PP_Instance instance) const override;
89 gfx::Point PluginPointToRenderFrame(PP_Instance instance, 90 gfx::Point PluginPointToRenderFrame(PP_Instance instance,
90 const gfx::Point& pt) const override; 91 const gfx::Point& pt) const override;
91 IPC::PlatformFileForTransit ShareHandleWithRemote( 92 IPC::PlatformFileForTransit ShareHandleWithRemote(
92 base::PlatformFile handle, 93 base::PlatformFile handle,
93 bool should_close_source) override; 94 bool should_close_source) override;
94 bool IsRunningInProcess() const override; 95 bool IsRunningInProcess() const override;
95 std::string GetPluginName() const override; 96 std::string GetPluginName() const override;
96 void SetToExternalPluginHost() override; 97 void SetToExternalPluginHost() override;
97 void CreateBrowserResourceHosts( 98 int32_t CreateBrowserResourceHosts(
98 PP_Instance instance, 99 PP_Instance instance,
99 const std::vector<IPC::Message>& nested_msgs, 100 const std::vector<IPC::Message>& nested_msgs,
100 const base::Callback<void(const std::vector<int>&)>& callback) 101 const PendingResourceCallback& callback) const override;
101 const override;
102 GURL GetDocumentURL(PP_Instance instance) const override; 102 GURL GetDocumentURL(PP_Instance instance) const override;
103 103
104 void GetAllPendingBrowserHosts(
105 PP_Instance instance,
106 std::vector<ppapi::proxy::CompletedBrowserResourceHosts>* result);
104 private: 107 private:
105 RendererPpapiHostImpl(PluginModule* module, 108 RendererPpapiHostImpl(PluginModule* module,
106 ppapi::proxy::HostDispatcher* dispatcher, 109 ppapi::proxy::HostDispatcher* dispatcher,
107 const ppapi::PpapiPermissions& permissions); 110 const ppapi::PpapiPermissions& permissions);
108 RendererPpapiHostImpl(PluginModule* module, 111 RendererPpapiHostImpl(PluginModule* module,
109 const ppapi::PpapiPermissions& permissions); 112 const ppapi::PpapiPermissions& permissions);
110 113
111 // Retrieves the plugin instance object associated with the given PP_Instance 114 // Retrieves the plugin instance object associated with the given PP_Instance
112 // and validates that it is one of the instances associated with our module. 115 // and validates that it is one of the instances associated with our module.
113 // Returns NULL on failure. 116 // Returns NULL on failure.
(...skipping 18 matching lines...) Expand all
132 135
133 // Whether this is a host for external plugins. 136 // Whether this is a host for external plugins.
134 bool is_external_plugin_host_; 137 bool is_external_plugin_host_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); 139 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl);
137 }; 140 };
138 141
139 } // namespace content 142 } // namespace content
140 143
141 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 144 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_file_chooser_host.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