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

Side by Side Diff: content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/host/host_factory.h" 9 #include "ppapi/host/host_factory.h"
10 10
11 namespace ppapi {
12 class PpapiPermissions;
13 }
14
11 namespace content { 15 namespace content {
12 16
13 class BrowserPpapiHostImpl; 17 class BrowserPpapiHostImpl;
14 18
15 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory { 19 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory {
16 public: 20 public:
17 // Non-owning pointer to the filter must outlive this class. 21 // Non-owning pointer to the filter must outlive this class.
18 explicit ContentBrowserPepperHostFactory(BrowserPpapiHostImpl* host); 22 explicit ContentBrowserPepperHostFactory(BrowserPpapiHostImpl* host);
19 virtual ~ContentBrowserPepperHostFactory(); 23 virtual ~ContentBrowserPepperHostFactory();
20 24
21 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 25 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
22 ppapi::host::PpapiHost* host, 26 ppapi::host::PpapiHost* host,
23 const ppapi::proxy::ResourceMessageCallParams& params, 27 const ppapi::proxy::ResourceMessageCallParams& params,
24 PP_Instance instance, 28 PP_Instance instance,
25 const IPC::Message& message) OVERRIDE; 29 const IPC::Message& message) OVERRIDE;
26 30
27 private: 31 private:
32 const ppapi::PpapiPermissions& GetPermissions() const;
33
28 // Non-owning pointer. 34 // Non-owning pointer.
29 BrowserPpapiHostImpl* host_; 35 BrowserPpapiHostImpl* host_;
30 36
31 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory); 37 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory);
32 }; 38 };
33 39
34 } // namespace content 40 } // namespace content
35 41
36 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 42 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698