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

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

Issue 19005006: Switched proxy for TCPServerSocketPrivate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed content_unittests. Created 7 years, 5 months 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 "base/memory/ref_counted.h"
10 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
9 #include "ppapi/host/host_factory.h" 11 #include "ppapi/host/host_factory.h"
10 12
11 namespace ppapi { 13 namespace ppapi {
12 class PpapiPermissions; 14 class PpapiPermissions;
13 } 15 }
14 16
15 namespace content { 17 namespace content {
16 18
17 class BrowserPpapiHostImpl; 19 class BrowserPpapiHostImpl;
18 20
19 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory { 21 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory {
20 public: 22 public:
21 // Non-owning pointer to the filter must outlive this class. 23 // Non-owning pointer to the filter must outlive this class.
22 explicit ContentBrowserPepperHostFactory(BrowserPpapiHostImpl* host); 24 ContentBrowserPepperHostFactory(
25 BrowserPpapiHostImpl* host,
26 const scoped_refptr<PepperMessageFilter>& pepper_message_filter);
yzshen1 2013/07/19 23:51:58 Please add a TODO that we should remove this param
ygorshenin1 2013/07/29 14:03:57 Done.
23 virtual ~ContentBrowserPepperHostFactory(); 27 virtual ~ContentBrowserPepperHostFactory();
24 28
25 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 29 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
26 ppapi::host::PpapiHost* host, 30 ppapi::host::PpapiHost* host,
27 const ppapi::proxy::ResourceMessageCallParams& params, 31 const ppapi::proxy::ResourceMessageCallParams& params,
28 PP_Instance instance, 32 PP_Instance instance,
29 const IPC::Message& message) OVERRIDE; 33 const IPC::Message& message) OVERRIDE;
30 34
31 private: 35 private:
32 const ppapi::PpapiPermissions& GetPermissions() const; 36 const ppapi::PpapiPermissions& GetPermissions() const;
33 37
34 // Non-owning pointer. 38 // Non-owning pointer.
35 BrowserPpapiHostImpl* host_; 39 BrowserPpapiHostImpl* host_;
36 40
41 scoped_refptr<PepperMessageFilter> pepper_message_filter_;
42
37 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory); 43 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory);
38 }; 44 };
39 45
40 } // namespace content 46 } // namespace content
41 47
42 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ 48 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698