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

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

Issue 23011018: Modify Pepper CreateResourceHostFromHost to create multiple hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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_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 "content/public/renderer/renderer_ppapi_host.h" 9 #include "content/public/renderer/renderer_ppapi_host.h"
10 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" 10 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual base::ProcessId GetPluginPID() const OVERRIDE; 42 virtual base::ProcessId GetPluginPID() const OVERRIDE;
43 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; 43 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
44 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; 44 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE;
45 virtual gfx::Point PluginPointToRenderView( 45 virtual gfx::Point PluginPointToRenderView(
46 PP_Instance instance, 46 PP_Instance instance,
47 const gfx::Point& pt) const OVERRIDE; 47 const gfx::Point& pt) const OVERRIDE;
48 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 48 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
49 base::PlatformFile handle, 49 base::PlatformFile handle,
50 bool should_close_source) OVERRIDE; 50 bool should_close_source) OVERRIDE;
51 virtual bool IsRunningInProcess() const OVERRIDE; 51 virtual bool IsRunningInProcess() const OVERRIDE;
52 virtual void CreateBrowserResourceHost( 52 virtual void CreateBrowserResourceHosts(
53 PP_Instance instance, 53 PP_Instance instance,
54 const IPC::Message& nested_msg, 54 const std::vector<IPC::Message>& nested_msgs,
55 const base::Callback<void(int)>& callback) const OVERRIDE; 55 const base::Callback<void(
56 const std::vector<int>&)>& callback) const OVERRIDE;
56 57
57 private: 58 private:
58 ppapi::proxy::ResourceMessageTestSink sink_; 59 ppapi::proxy::ResourceMessageTestSink sink_;
59 ppapi::host::PpapiHost ppapi_host_; 60 ppapi::host::PpapiHost ppapi_host_;
60 61
61 RenderView* render_view_; 62 RenderView* render_view_;
62 PP_Instance pp_instance_; 63 PP_Instance pp_instance_;
63 64
64 bool has_user_gesture_; 65 bool has_user_gesture_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); 67 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost);
67 }; 68 };
68 69
69 } // namespace content 70 } // namespace content
70 71
71 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 72 #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