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

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

Issue 11419131: Refactor FileIO to the new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 22 matching lines...) Expand all
33 class PluginInstance; 33 class PluginInstance;
34 } 34 }
35 } 35 }
36 36
37 namespace WebKit { 37 namespace WebKit {
38 class WebPluginContainer; 38 class WebPluginContainer;
39 } 39 }
40 40
41 namespace webkit { 41 namespace webkit {
42 namespace ppapi { 42 namespace ppapi {
43 class PluginDelegate;
43 class PluginInstance; 44 class PluginInstance;
44 class PluginModule; 45 class PluginModule;
45 } 46 }
46 } 47 }
47 48
48 namespace content { 49 namespace content {
49 50
50 class RenderView; 51 class RenderView;
51 52
52 // Interface that allows components in the embedder app to talk to the 53 // Interface that allows components in the embedder app to talk to the
(...skipping 20 matching lines...) Expand all
73 74
74 // Returns true if the given PP_Instance is valid and belongs to the 75 // Returns true if the given PP_Instance is valid and belongs to the
75 // plugin associated with this host. 76 // plugin associated with this host.
76 virtual bool IsValidInstance(PP_Instance instance) const = 0; 77 virtual bool IsValidInstance(PP_Instance instance) const = 0;
77 78
78 // Returns the PluginInstance for the given PP_Instance, or NULL if the 79 // Returns the PluginInstance for the given PP_Instance, or NULL if the
79 // PP_Instance is invalid. 80 // PP_Instance is invalid.
80 virtual webkit::ppapi::PluginInstance* GetPluginInstance( 81 virtual webkit::ppapi::PluginInstance* GetPluginInstance(
81 PP_Instance instance) const = 0; 82 PP_Instance instance) const = 0;
82 83
84 // Returns the PluginDelegate for the given plugin instance, or NULL if the
raymes 2012/11/26 22:30:54 I would change "plugin instance" -> "PP_Instance"
victorhsieh 2012/11/27 09:44:42 Deleted
85 // instance is invalid.
86 virtual webkit::ppapi::PluginDelegate* GetDelegateForInstance(
raymes 2012/11/27 06:54:28 The plugin delegate shouldn't be needed for new-st
victorhsieh 2012/11/27 09:44:42 Done.
87 PP_Instance instance) const = 0;
88
83 // Returns the RenderView for the given plugin instance, or NULL if the 89 // Returns the RenderView for the given plugin instance, or NULL if the
84 // instance is invalid. 90 // instance is invalid.
85 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0; 91 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0;
86 92
87 // Returns the WebPluginContainer for the given plugin instance, or NULL if 93 // Returns the WebPluginContainer for the given plugin instance, or NULL if
88 // the instance is invalid. 94 // the instance is invalid.
89 virtual WebKit::WebPluginContainer* GetContainerForInstance( 95 virtual WebKit::WebPluginContainer* GetContainerForInstance(
90 PP_Instance instance) const = 0; 96 PP_Instance instance) const = 0;
91 97
92 // Returns true if the given instance is considered to be currently 98 // Returns true if the given instance is considered to be currently
(...skipping 26 matching lines...) Expand all
119 base::PlatformFile handle, 125 base::PlatformFile handle,
120 bool should_close_source) = 0; 126 bool should_close_source) = 0;
121 127
122 protected: 128 protected:
123 virtual ~RendererPpapiHost() {} 129 virtual ~RendererPpapiHost() {}
124 }; 130 };
125 131
126 } // namespace content 132 } // namespace content
127 133
128 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 134 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
129
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698