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

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

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 #include "content/renderer/pepper/mock_renderer_ppapi_host.h" 5 #include "content/renderer/pepper/mock_renderer_ppapi_host.h"
6 6
7 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" 7 #include "content/renderer/pepper/fake_pepper_plugin_instance.h"
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/point.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 17 matching lines...) Expand all
28 28
29 bool MockRendererPpapiHost::IsValidInstance(PP_Instance instance) const { 29 bool MockRendererPpapiHost::IsValidInstance(PP_Instance instance) const {
30 return instance == pp_instance_; 30 return instance == pp_instance_;
31 } 31 }
32 32
33 PepperPluginInstance* MockRendererPpapiHost::GetPluginInstance( 33 PepperPluginInstance* MockRendererPpapiHost::GetPluginInstance(
34 PP_Instance instance) const { 34 PP_Instance instance) const {
35 return plugin_instance_.get(); 35 return plugin_instance_.get();
36 } 36 }
37 37
38 RenderFrame* MockRendererPpapiHost::GetRenderFrameForInstance(
39 PP_Instance instance) const {
40 return NULL;
41 }
42
38 RenderView* MockRendererPpapiHost::GetRenderViewForInstance( 43 RenderView* MockRendererPpapiHost::GetRenderViewForInstance(
39 PP_Instance instance) const { 44 PP_Instance instance) const {
40 if (instance == pp_instance_) 45 if (instance == pp_instance_)
41 return render_view_; 46 return render_view_;
42 return NULL; 47 return NULL;
43 } 48 }
44 49
45 blink::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( 50 blink::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance(
46 PP_Instance instance) const { 51 PP_Instance instance) const {
47 NOTIMPLEMENTED(); 52 NOTIMPLEMENTED();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 callback.Run(std::vector<int>(nested_msgs.size(), 0)); 90 callback.Run(std::vector<int>(nested_msgs.size(), 0));
86 return; 91 return;
87 } 92 }
88 93
89 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const { 94 GURL MockRendererPpapiHost::GetDocumentURL(PP_Instance instance) const {
90 NOTIMPLEMENTED(); 95 NOTIMPLEMENTED();
91 return GURL(); 96 return GURL();
92 } 97 }
93 98
94 } // namespace content 99 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_browser_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698