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

Side by Side Diff: content/public/renderer/renderer_ppapi_host.h

Issue 11416363: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/process.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "ipc/ipc_platform_file.h" 12 #include "ipc/ipc_platform_file.h"
12 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
13 #include "webkit/plugins/ppapi/plugin_delegate.h" 14 #include "webkit/plugins/ppapi/plugin_delegate.h"
14 15
15 class FilePath; 16 class FilePath;
16 17
17 namespace gfx { 18 namespace gfx {
18 class Point; 19 class Point;
19 } 20 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 84
84 // Returns the RenderView for the given plugin instance, or NULL if the 85 // Returns the RenderView for the given plugin instance, or NULL if the
85 // instance is invalid. 86 // instance is invalid.
86 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0; 87 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0;
87 88
88 // Returns the WebPluginContainer for the given plugin instance, or NULL if 89 // Returns the WebPluginContainer for the given plugin instance, or NULL if
89 // the instance is invalid. 90 // the instance is invalid.
90 virtual WebKit::WebPluginContainer* GetContainerForInstance( 91 virtual WebKit::WebPluginContainer* GetContainerForInstance(
91 PP_Instance instance) const = 0; 92 PP_Instance instance) const = 0;
92 93
94 // Returns the PID of the child process containing the plugin. If running
95 // in-process, this returns base::kNullProcessId.
96 virtual base::ProcessId GetPluginPID() const = 0;
97
93 // Returns the PlatformGraphics2D for the given plugin resource, or NULL if 98 // Returns the PlatformGraphics2D for the given plugin resource, or NULL if
94 // the resource is invalid. 99 // the resource is invalid.
95 virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D* 100 virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D*
96 GetPlatformGraphics2D(PP_Resource resource) = 0; 101 GetPlatformGraphics2D(PP_Resource resource) = 0;
97 102
98 // Returns true if the given instance is considered to be currently 103 // Returns true if the given instance is considered to be currently
99 // processing a user gesture or the plugin module has the "override user 104 // processing a user gesture or the plugin module has the "override user
100 // gesture" flag set (in which case it can always do things normally 105 // gesture" flag set (in which case it can always do things normally
101 // restricted by user gestures). Returns false if the instance is invalid or 106 // restricted by user gestures). Returns false if the instance is invalid or
102 // if there is no current user gesture. 107 // if there is no current user gesture.
(...skipping 25 matching lines...) Expand all
128 // Returns true if the plugin is running in process. 133 // Returns true if the plugin is running in process.
129 virtual bool IsRunningInProcess() const = 0; 134 virtual bool IsRunningInProcess() const = 0;
130 135
131 protected: 136 protected:
132 virtual ~RendererPpapiHost() {} 137 virtual ~RendererPpapiHost() {}
133 }; 138 };
134 139
135 } // namespace content 140 } // namespace content
136 141
137 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 142 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698