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

Side by Side Diff: content/browser/renderer_host/mock_render_process_host.h

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const base::TimeDelta& max_delay, 44 const base::TimeDelta& max_delay,
45 IPC::Message* msg); 45 IPC::Message* msg);
46 virtual void ReceivedBadMessage(); 46 virtual void ReceivedBadMessage();
47 virtual void WidgetRestored(); 47 virtual void WidgetRestored();
48 virtual void WidgetHidden(); 48 virtual void WidgetHidden();
49 virtual int VisibleWidgetCount() const; 49 virtual int VisibleWidgetCount() const;
50 virtual void AddWord(const string16& word); 50 virtual void AddWord(const string16& word);
51 virtual bool FastShutdownIfPossible(); 51 virtual bool FastShutdownIfPossible();
52 virtual base::ProcessHandle GetHandle(); 52 virtual base::ProcessHandle GetHandle();
53 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 53 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
54 virtual void SetCompositingSurface(
55 int render_widget_id,
56 gfx::PluginWindowHandle compositing_surface);
54 57
55 // IPC::Channel::Sender via RenderProcessHost. 58 // IPC::Channel::Sender via RenderProcessHost.
56 virtual bool Send(IPC::Message* msg); 59 virtual bool Send(IPC::Message* msg);
57 60
58 // IPC::Channel::Listener via RenderProcessHost. 61 // IPC::Channel::Listener via RenderProcessHost.
59 virtual bool OnMessageReceived(const IPC::Message& msg); 62 virtual bool OnMessageReceived(const IPC::Message& msg);
60 virtual void OnChannelConnected(int32 peer_pid); 63 virtual void OnChannelConnected(int32 peer_pid);
61 64
62 // Attaches the factory object so we can remove this object in its destructor 65 // Attaches the factory object so we can remove this object in its destructor
63 // and prevent MockRenderProcessHostFacotry from deleting it. 66 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 26 matching lines...) Expand all
90 private: 93 private:
91 // A list of MockRenderProcessHosts created by this object. This list is used 94 // A list of MockRenderProcessHosts created by this object. This list is used
92 // for deleting all MockRenderProcessHosts that have not deleted by a test in 95 // for deleting all MockRenderProcessHosts that have not deleted by a test in
93 // the destructor and prevent them from being leaked. 96 // the destructor and prevent them from being leaked.
94 mutable ScopedVector<MockRenderProcessHost> processes_; 97 mutable ScopedVector<MockRenderProcessHost> processes_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 99 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
97 }; 100 };
98 101
99 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 102 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698