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

Side by Side Diff: content/renderer/pepper/content_instance_glue_impl.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_INSTANCE_GLUE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_INSTANCE_GLUE_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/renderer/pepper/content_instance_glue.h"
10
11 namespace webkit {
12 namespace ppapi {
13 class PluginInstance;
14 class PluginModule;
15 }
16 }
17
18 namespace content {
19
20 class ContentInstanceGlueImpl : public ContentInstanceGlue {
21 public:
22 ContentInstanceGlueImpl(webkit::ppapi::PluginModule* module);
23 virtual ~ContentInstanceGlueImpl();
24
25 // ContentInstanceGlue implmentation.
26 virtual bool IsValidInstance(PP_Instance instance) OVERRIDE;
27 virtual bool HasUserGesture(PP_Instance pp_instance) OVERRIDE;
28
29 private:
30 // Retrieves the plugin instance object associated with the given PP_Instance
31 // and validates that it is one of the instances associated with our module.
32 // Returns NULL on failure.
33 //
34 // We use this to security check the PP_Instance values sent from a plugin to
35 // make sure it's not trying to spoof another instance.
36 webkit::ppapi::PluginInstance* GetAndValidateInstance(PP_Instance instance);
37
38 webkit::ppapi::PluginModule* module_;
39
40 DISALLOW_COPY_AND_ASSIGN(ContentInstanceGlueImpl);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_RENDERER_PEPPER_CONTENT_INSTANCE_GLUE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698