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

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

Issue 8734007: Merge 110556 - Fix next_page_id_ in a NTP forced to share an existing WebUI process. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years 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 21 matching lines...) Expand all
32 // Provides tests access to the max page ID currently used for this process. 32 // Provides tests access to the max page ID currently used for this process.
33 int max_page_id() const { return max_page_id_; } 33 int max_page_id() const { return max_page_id_; }
34 34
35 // Provides test access to how many times a bad message has been received. 35 // Provides test access to how many times a bad message has been received.
36 int bad_msg_count() const { return bad_msg_count_; } 36 int bad_msg_count() const { return bad_msg_count_; }
37 37
38 // RenderProcessHost implementation (public portion). 38 // RenderProcessHost implementation (public portion).
39 virtual void EnableSendQueue(); 39 virtual void EnableSendQueue();
40 virtual bool Init(bool is_accessibility_enabled); 40 virtual bool Init(bool is_accessibility_enabled);
41 virtual int GetNextRoutingID(); 41 virtual int GetNextRoutingID();
42 virtual void UpdateAndSendMaxPageID(int32 page_id);
42 virtual void CancelResourceRequests(int render_widget_id); 43 virtual void CancelResourceRequests(int render_widget_id);
43 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); 44 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
44 virtual bool WaitForUpdateMsg(int render_widget_id, 45 virtual bool WaitForUpdateMsg(int render_widget_id,
45 const base::TimeDelta& max_delay, 46 const base::TimeDelta& max_delay,
46 IPC::Message* msg); 47 IPC::Message* msg);
47 virtual void ReceivedBadMessage(); 48 virtual void ReceivedBadMessage();
48 virtual void WidgetRestored(); 49 virtual void WidgetRestored();
49 virtual void WidgetHidden(); 50 virtual void WidgetHidden();
50 virtual int VisibleWidgetCount() const; 51 virtual int VisibleWidgetCount() const;
51 virtual void AddWord(const string16& word); 52 virtual void AddWord(const string16& word);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 private: 97 private:
97 // A list of MockRenderProcessHosts created by this object. This list is used 98 // A list of MockRenderProcessHosts created by this object. This list is used
98 // for deleting all MockRenderProcessHosts that have not deleted by a test in 99 // for deleting all MockRenderProcessHosts that have not deleted by a test in
99 // the destructor and prevent them from being leaked. 100 // the destructor and prevent them from being leaked.
100 mutable ScopedVector<MockRenderProcessHost> processes_; 101 mutable ScopedVector<MockRenderProcessHost> processes_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 103 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
103 }; 104 };
104 105
105 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 106 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698