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

Side by Side Diff: content/test/mock_render_process_host.h

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed auto-resize and fullscreen toggle Created 8 years, 8 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/mock_render_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_TEST_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 21 matching lines...) Expand all
32 // Provides test access to how many times a bad message has been received. 32 // Provides test access to how many times a bad message has been received.
33 int bad_msg_count() const { return bad_msg_count_; } 33 int bad_msg_count() const { return bad_msg_count_; }
34 34
35 // RenderProcessHost implementation (public portion). 35 // RenderProcessHost implementation (public portion).
36 virtual void EnableSendQueue() OVERRIDE; 36 virtual void EnableSendQueue() OVERRIDE;
37 virtual bool Init() OVERRIDE; 37 virtual bool Init() OVERRIDE;
38 virtual int GetNextRoutingID() OVERRIDE; 38 virtual int GetNextRoutingID() OVERRIDE;
39 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; 39 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE;
40 virtual void SimulateSwapOutACK( 40 virtual void SimulateSwapOutACK(
41 const ViewMsg_SwapOut_Params& params) OVERRIDE; 41 const ViewMsg_SwapOut_Params& params) OVERRIDE;
42 virtual bool WaitForUpdateMsg(int render_widget_id, 42 virtual bool WaitForBackingStoreMsg(int render_widget_id,
43 const base::TimeDelta& max_delay, 43 const base::TimeDelta& max_delay,
44 IPC::Message* msg) OVERRIDE; 44 IPC::Message* msg) OVERRIDE;
45 virtual void ReceivedBadMessage() OVERRIDE; 45 virtual void ReceivedBadMessage() OVERRIDE;
46 virtual void WidgetRestored() OVERRIDE; 46 virtual void WidgetRestored() OVERRIDE;
47 virtual void WidgetHidden() OVERRIDE; 47 virtual void WidgetHidden() OVERRIDE;
48 virtual int VisibleWidgetCount() const OVERRIDE; 48 virtual int VisibleWidgetCount() const OVERRIDE;
49 virtual void AddWord(const string16& word); 49 virtual void AddWord(const string16& word);
50 virtual bool FastShutdownIfPossible() OVERRIDE; 50 virtual bool FastShutdownIfPossible() OVERRIDE;
51 virtual bool FastShutdownStarted() const OVERRIDE; 51 virtual bool FastShutdownStarted() const OVERRIDE;
52 virtual void DumpHandles() OVERRIDE; 52 virtual void DumpHandles() OVERRIDE;
53 virtual base::ProcessHandle GetHandle() OVERRIDE; 53 virtual base::ProcessHandle GetHandle() OVERRIDE;
54 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; 54 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // for deleting all MockRenderProcessHosts that have not deleted by a test in 119 // for deleting all MockRenderProcessHosts that have not deleted by a test in
120 // the destructor and prevent them from being leaked. 120 // the destructor and prevent them from being leaked.
121 mutable ScopedVector<MockRenderProcessHost> processes_; 121 mutable ScopedVector<MockRenderProcessHost> processes_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 123 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
124 }; 124 };
125 125
126 } // namespace content 126 } // namespace content
127 127
128 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_HOST_H_ 128 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698