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

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

Issue 48743008: Pepper: specify the security origin when enumerating media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/process/process.h" 13 #include "base/process/process.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "ipc/ipc_platform_file.h" 15 #include "ipc/ipc_platform_file.h"
16 #include "ppapi/c/pp_instance.h" 16 #include "ppapi/c/pp_instance.h"
17 #include "url/gurl.h"
17 18
18 namespace base { 19 namespace base {
19 class FilePath; 20 class FilePath;
20 } 21 }
21 22
22 namespace gfx { 23 namespace gfx {
23 class Point; 24 class Point;
24 } 25 }
25 26
26 namespace IPC { 27 namespace IPC {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // resource host creation messages and |instance| is the PP_Instance which 122 // resource host creation messages and |instance| is the PP_Instance which
122 // the resource will belong to. |callback| will be called asynchronously with 123 // the resource will belong to. |callback| will be called asynchronously with
123 // the pending host IDs when the ResourceHosts have been created. This can be 124 // the pending host IDs when the ResourceHosts have been created. This can be
124 // passed back to the plugin to attach to the ResourceHosts. Pending IDs of 0 125 // passed back to the plugin to attach to the ResourceHosts. Pending IDs of 0
125 // will be passed to the callback if a ResourceHost fails to be created. 126 // will be passed to the callback if a ResourceHost fails to be created.
126 virtual void CreateBrowserResourceHosts( 127 virtual void CreateBrowserResourceHosts(
127 PP_Instance instance, 128 PP_Instance instance,
128 const std::vector<IPC::Message>& nested_msgs, 129 const std::vector<IPC::Message>& nested_msgs,
129 const base::Callback<void(const std::vector<int>&)>& callback) const = 0; 130 const base::Callback<void(const std::vector<int>&)>& callback) const = 0;
130 131
132 // Gets the URL of the document containing the given PP_Instance.
133 // Returns an empty URL if the instance is invalid.
134 // TODO(yzshen): Some methods such as this one don't need to be pure virutal.
Avi (use Gerrit) 2013/11/04 19:59:45 s/virutal/virtual/
yzshen1 2013/11/04 20:04:17 Done.
135 // Instead, they could be directly implemented using other methods in this
136 // interface. Consider changing them to static helpers.
137 virtual GURL GetDocumentURL(PP_Instance instance) const = 0;
138
131 protected: 139 protected:
132 virtual ~RendererPpapiHost() {} 140 virtual ~RendererPpapiHost() {}
133 }; 141 };
134 142
135 } // namespace content 143 } // namespace content
136 144
137 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ 145 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698