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

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

Issue 397031: Launch processes asynchronously so as not to block the UI thread. For now, re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: return 0 instead of -1 if zygote couldn't launch renderer Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 9 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/common/ipc_test_sink.h" 10 #include "chrome/common/ipc_test_sink.h"
(...skipping 25 matching lines...) Expand all
36 virtual void CancelResourceRequests(int render_widget_id); 36 virtual void CancelResourceRequests(int render_widget_id);
37 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); 37 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params);
38 virtual bool WaitForPaintMsg(int render_widget_id, 38 virtual bool WaitForPaintMsg(int render_widget_id,
39 const base::TimeDelta& max_delay, 39 const base::TimeDelta& max_delay,
40 IPC::Message* msg); 40 IPC::Message* msg);
41 virtual void ReceivedBadMessage(uint16 msg_type); 41 virtual void ReceivedBadMessage(uint16 msg_type);
42 virtual void WidgetRestored(); 42 virtual void WidgetRestored();
43 virtual void WidgetHidden(); 43 virtual void WidgetHidden();
44 virtual void ViewCreated(); 44 virtual void ViewCreated();
45 virtual void AddWord(const string16& word); 45 virtual void AddWord(const string16& word);
46 virtual void SendVisitedLinkTable(base::SharedMemory* table_memory);
46 virtual void AddVisitedLinks( 47 virtual void AddVisitedLinks(
47 const VisitedLinkCommon::Fingerprints& visited_links); 48 const VisitedLinkCommon::Fingerprints& visited_links);
48 virtual void ResetVisitedLinks(); 49 virtual void ResetVisitedLinks();
49 virtual bool FastShutdownIfPossible(); 50 virtual bool FastShutdownIfPossible();
50 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); 51 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms);
51 virtual base::ProcessHandle GetHandle() { 52 virtual base::ProcessHandle GetHandle() {
52 return base::kNullProcessHandle; 53 return base::kNullProcessHandle;
53 } 54 }
54 55
55 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 56 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
(...skipping 22 matching lines...) Expand all
78 virtual RenderProcessHost* CreateRenderProcessHost( 79 virtual RenderProcessHost* CreateRenderProcessHost(
79 Profile* profile) const { 80 Profile* profile) const {
80 return new MockRenderProcessHost(profile); 81 return new MockRenderProcessHost(profile);
81 } 82 }
82 83
83 private: 84 private:
84 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 85 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
85 }; 86 };
86 87
87 #endif // CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 88 #endif // CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/renderer_host/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698