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

Side by Side Diff: content/renderer/pepper/renderer_ppapi_host_impl.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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CreateBrowserResourceHosts( 95 virtual void CreateBrowserResourceHosts(
96 PP_Instance instance, 96 PP_Instance instance,
97 const std::vector<IPC::Message>& nested_msgs, 97 const std::vector<IPC::Message>& nested_msgs,
98 const base::Callback<void( 98 const base::Callback<void(
99 const std::vector<int>&)>& callback) const OVERRIDE; 99 const std::vector<int>&)>& callback) const OVERRIDE;
100 virtual GURL GetDocumentURL(PP_Instance instance) const OVERRIDE;
100 101
101 private: 102 private:
102 RendererPpapiHostImpl(PluginModule* module, 103 RendererPpapiHostImpl(PluginModule* module,
103 ppapi::proxy::HostDispatcher* dispatcher, 104 ppapi::proxy::HostDispatcher* dispatcher,
104 const ppapi::PpapiPermissions& permissions); 105 const ppapi::PpapiPermissions& permissions);
105 RendererPpapiHostImpl(PluginModule* module, 106 RendererPpapiHostImpl(PluginModule* module,
106 const ppapi::PpapiPermissions& permissions); 107 const ppapi::PpapiPermissions& permissions);
107 108
108 // Retrieves the plugin instance object associated with the given PP_Instance 109 // Retrieves the plugin instance object associated with the given PP_Instance
109 // and validates that it is one of the instances associated with our module. 110 // and validates that it is one of the instances associated with our module.
(...skipping 16 matching lines...) Expand all
126 127
127 // Whether the plugin is running in process. 128 // Whether the plugin is running in process.
128 bool is_running_in_process_; 129 bool is_running_in_process_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); 131 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl);
131 }; 132 };
132 133
133 } // namespace content 134 } // namespace content
134 135
135 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ 136 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_capture_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