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

Side by Side Diff: content/renderer/pepper/pepper_in_process_resource_creation.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun 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_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_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/renderer/pepper/resource_creation_impl.h"
10 #include "ppapi/proxy/connection.h" 11 #include "ppapi/proxy/connection.h"
11 #include "webkit/plugins/ppapi/resource_creation_impl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class RendererPpapiHostImpl; 15 class RendererPpapiHostImpl;
16 16
17 // This class provides creation functions for the new resources with IPC 17 // This class provides creation functions for the new resources with IPC
18 // backends that live in content/renderer/pepper. 18 // backends that live in content/renderer/pepper.
19 // 19 //
20 // (See pepper_in_process_router.h for more information.) 20 // (See pepper_in_process_router.h for more information.)
21 // 21 //
22 // This is a bit confusing. The "old-style" resources live in 22 // This is a bit confusing. The "old-style" resources live in
23 // webkit/plugins/ppapi and are created by the ResourceCreationImpl in that 23 // content/renderer/pepper and are created by the ResourceCreationImpl in that
24 // directory. The "new-style" IPC-only resources are in ppapi/proxy and are 24 // directory. The "new-style" IPC-only resources are in ppapi/proxy and are
25 // created by the RessourceCreationProxy in that directory. 25 // created by the RessourceCreationProxy in that directory.
26 // 26 //
27 // This class allows us to run new-style IPC-only resources in-process. We use 27 // This class allows us to run new-style IPC-only resources in-process. We use
28 // the PepperInProcessRouter to run it in process. But then we have a problem 28 // the PepperInProcessRouter to run it in process. But then we have a problem
29 // with allocating the resources since src/webkit can't depend on IPC or see 29 // with allocating the resources since src/webkit can't depend on IPC or see
30 // our IPC backend in content. This class overrides the normal in-process 30 // our IPC backend in content. This class overrides the normal in-process
31 // resource creation and adds in the resources that we implement in 31 // resource creation and adds in the resources that we implement in
32 // ppapi/proxy. 32 // ppapi/proxy.
33 // 33 //
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 private: 71 private:
72 // Non-owning pointer to the host for the current plugin. 72 // Non-owning pointer to the host for the current plugin.
73 RendererPpapiHostImpl* host_impl_; 73 RendererPpapiHostImpl* host_impl_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); 75 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation);
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | content/renderer/pepper/pepper_in_process_resource_creation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698