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

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

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void ReceivedBadMessage() OVERRIDE; 42 virtual void ReceivedBadMessage() OVERRIDE;
43 virtual void WidgetRestored() OVERRIDE; 43 virtual void WidgetRestored() OVERRIDE;
44 virtual void WidgetHidden() OVERRIDE; 44 virtual void WidgetHidden() OVERRIDE;
45 virtual int VisibleWidgetCount() const OVERRIDE; 45 virtual int VisibleWidgetCount() const OVERRIDE;
46 virtual void AddWord(const string16& word); 46 virtual void AddWord(const string16& word);
47 virtual bool FastShutdownIfPossible() OVERRIDE; 47 virtual bool FastShutdownIfPossible() OVERRIDE;
48 virtual bool FastShutdownStarted() const OVERRIDE; 48 virtual bool FastShutdownStarted() const OVERRIDE;
49 virtual void DumpHandles() OVERRIDE; 49 virtual void DumpHandles() OVERRIDE;
50 virtual base::ProcessHandle GetHandle() OVERRIDE; 50 virtual base::ProcessHandle GetHandle() OVERRIDE;
51 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; 51 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE;
52 virtual void SetCompositingSurface(
53 int render_widget_id,
54 gfx::PluginWindowHandle compositing_surface) OVERRIDE;
55 virtual int GetID() const OVERRIDE; 52 virtual int GetID() const OVERRIDE;
56 virtual bool HasConnection() const OVERRIDE; 53 virtual bool HasConnection() const OVERRIDE;
57 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; 54 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE;
58 virtual bool IgnoreInputEvents() const OVERRIDE; 55 virtual bool IgnoreInputEvents() const OVERRIDE;
59 virtual void Attach(IPC::Channel::Listener* listener, 56 virtual void Attach(IPC::Channel::Listener* listener,
60 int routing_id) OVERRIDE; 57 int routing_id) OVERRIDE;
61 virtual void Release(int listener_id) OVERRIDE; 58 virtual void Release(int listener_id) OVERRIDE;
62 virtual void Cleanup() OVERRIDE; 59 virtual void Cleanup() OVERRIDE;
63 virtual void ReportExpectingClose(int32 listener_id) OVERRIDE; 60 virtual void ReportExpectingClose(int32 listener_id) OVERRIDE;
64 virtual void AddPendingView() OVERRIDE; 61 virtual void AddPendingView() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 private: 113 private:
117 // A list of MockRenderProcessHosts created by this object. This list is used 114 // A list of MockRenderProcessHosts created by this object. This list is used
118 // for deleting all MockRenderProcessHosts that have not deleted by a test in 115 // for deleting all MockRenderProcessHosts that have not deleted by a test in
119 // the destructor and prevent them from being leaked. 116 // the destructor and prevent them from being leaked.
120 mutable ScopedVector<MockRenderProcessHost> processes_; 117 mutable ScopedVector<MockRenderProcessHost> processes_;
121 118
122 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 119 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
123 }; 120 };
124 121
125 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 122 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_client.cc ('k') | content/browser/renderer_host/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698