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

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

Issue 100943002: Convert PepperBrowserConnection to be a RenderFrameObserver. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fixes Created 7 years 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_MOCK_RENDERER_PPAPI_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_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/public/renderer/renderer_ppapi_host.h" 10 #include "content/public/renderer/renderer_ppapi_host.h"
(...skipping 19 matching lines...) Expand all
30 PP_Instance pp_instance() const { return pp_instance_; } 30 PP_Instance pp_instance() const { return pp_instance_; }
31 31
32 // Sets whether there is currently a user gesture. Defaults to false. 32 // Sets whether there is currently a user gesture. Defaults to false.
33 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; } 33 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; }
34 34
35 // RendererPpapiHost. 35 // RendererPpapiHost.
36 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; 36 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE;
37 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; 37 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE;
38 virtual PepperPluginInstance* GetPluginInstance( 38 virtual PepperPluginInstance* GetPluginInstance(
39 PP_Instance instance) const OVERRIDE; 39 PP_Instance instance) const OVERRIDE;
40 virtual RenderFrame* GetRenderFrameForInstance(
41 PP_Instance instance) const OVERRIDE;
40 virtual RenderView* GetRenderViewForInstance( 42 virtual RenderView* GetRenderViewForInstance(
41 PP_Instance instance) const OVERRIDE; 43 PP_Instance instance) const OVERRIDE;
42 virtual blink::WebPluginContainer* GetContainerForInstance( 44 virtual blink::WebPluginContainer* GetContainerForInstance(
43 PP_Instance instance) const OVERRIDE; 45 PP_Instance instance) const OVERRIDE;
44 virtual base::ProcessId GetPluginPID() const OVERRIDE; 46 virtual base::ProcessId GetPluginPID() const OVERRIDE;
45 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; 47 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
46 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; 48 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE;
47 virtual gfx::Point PluginPointToRenderView( 49 virtual gfx::Point PluginPointToRenderView(
48 PP_Instance instance, 50 PP_Instance instance,
49 const gfx::Point& pt) const OVERRIDE; 51 const gfx::Point& pt) const OVERRIDE;
(...skipping 18 matching lines...) Expand all
68 bool has_user_gesture_; 70 bool has_user_gesture_;
69 71
70 scoped_ptr<FakePepperPluginInstance> plugin_instance_; 72 scoped_ptr<FakePepperPluginInstance> plugin_instance_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); 74 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost);
73 }; 75 };
74 76
75 } // namespace content 77 } // namespace content
76 78
77 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 79 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/public/renderer/renderer_ppapi_host.h ('k') | content/renderer/pepper/mock_renderer_ppapi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698