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

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

Issue 10544089: Implement the file chooser as a new resource "host" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 "webkit/plugins/ppapi/resource_creation_impl.h" 10 #include "webkit/plugins/ppapi/resource_creation_impl.h"
(...skipping 19 matching lines...) Expand all
30 // When we convert all resources to use the new-style, we can just use the 30 // When we convert all resources to use the new-style, we can just use the
31 // ResourceCreationProxy for all resources. This class is just glue to manage 31 // ResourceCreationProxy for all resources. This class is just glue to manage
32 // the temporary "two different classes." 32 // the temporary "two different classes."
33 class PepperInProcessResourceCreation 33 class PepperInProcessResourceCreation
34 : public webkit::ppapi::ResourceCreationImpl { 34 : public webkit::ppapi::ResourceCreationImpl {
35 public: 35 public:
36 PepperInProcessResourceCreation(RenderViewImpl* render_view, 36 PepperInProcessResourceCreation(RenderViewImpl* render_view,
37 webkit::ppapi::PluginInstance* instance); 37 webkit::ppapi::PluginInstance* instance);
38 virtual ~PepperInProcessResourceCreation(); 38 virtual ~PepperInProcessResourceCreation();
39 39
40 // ResourceCreation_API implementation.
41 PP_Resource PepperInProcessResourceCreation::CreateFileChooser(
42 PP_Instance instance,
43 PP_FileChooserMode_Dev mode,
44 const char* accept_types);
45
40 private: 46 private:
41 class HostToPluginRouter; 47 class HostToPluginRouter;
42 scoped_ptr<HostToPluginRouter> host_to_plugin_router_; 48 scoped_ptr<HostToPluginRouter> host_to_plugin_router_;
43 49
44 class PluginToHostRouter; 50 class PluginToHostRouter;
45 scoped_ptr<PluginToHostRouter> plugin_to_host_router_; 51 scoped_ptr<PluginToHostRouter> plugin_to_host_router_;
46 52
47 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); 53 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation);
48 }; 54 };
49 55
50 } // namespace content 56 } // namespace content
51 57
52 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ 58 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698