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

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

Issue 10907182: Add UMA counter for hung renderers on cross-site navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 18 matching lines...) Expand all
29 IPC::TestSink& sink() { return sink_; } 29 IPC::TestSink& sink() { return sink_; }
30 30
31 // Provides test access to how many times a bad message has been received. 31 // Provides test access to how many times a bad message has been received.
32 int bad_msg_count() const { return bad_msg_count_; } 32 int bad_msg_count() const { return bad_msg_count_; }
33 33
34 // RenderProcessHost implementation (public portion). 34 // RenderProcessHost implementation (public portion).
35 virtual void EnableSendQueue() OVERRIDE; 35 virtual void EnableSendQueue() OVERRIDE;
36 virtual bool Init() OVERRIDE; 36 virtual bool Init() OVERRIDE;
37 virtual int GetNextRoutingID() OVERRIDE; 37 virtual int GetNextRoutingID() OVERRIDE;
38 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; 38 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE;
39 virtual void CrossSiteSwapOutACK( 39 virtual void SimulateSwapOutACK(
40 const ViewMsg_SwapOut_Params& params) OVERRIDE; 40 const ViewMsg_SwapOut_Params& params) OVERRIDE;
41 virtual bool WaitForBackingStoreMsg(int render_widget_id, 41 virtual bool WaitForBackingStoreMsg(int render_widget_id,
42 const base::TimeDelta& max_delay, 42 const base::TimeDelta& max_delay,
43 IPC::Message* msg) OVERRIDE; 43 IPC::Message* msg) OVERRIDE;
44 virtual void ReceivedBadMessage() OVERRIDE; 44 virtual void ReceivedBadMessage() OVERRIDE;
45 virtual void WidgetRestored() OVERRIDE; 45 virtual void WidgetRestored() OVERRIDE;
46 virtual void WidgetHidden() OVERRIDE; 46 virtual void WidgetHidden() OVERRIDE;
47 virtual int VisibleWidgetCount() const OVERRIDE; 47 virtual int VisibleWidgetCount() const OVERRIDE;
48 virtual bool IsGuest() const OVERRIDE; 48 virtual bool IsGuest() const OVERRIDE;
49 virtual void AddWord(const string16& word); 49 virtual void AddWord(const string16& word);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // for deleting all MockRenderProcessHosts that have not deleted by a test in 121 // for deleting all MockRenderProcessHosts that have not deleted by a test in
122 // the destructor and prevent them from being leaked. 122 // the destructor and prevent them from being leaked.
123 mutable ScopedVector<MockRenderProcessHost> processes_; 123 mutable ScopedVector<MockRenderProcessHost> processes_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 125 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
126 }; 126 };
127 127
128 } // namespace content 128 } // namespace content
129 129
130 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 130 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698