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

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

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 2 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_vector.h" 10 #include "base/scoped_vector.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void ViewCreated(); 46 virtual void ViewCreated();
47 virtual void AddWord(const string16& word); 47 virtual void AddWord(const string16& word);
48 virtual void SendVisitedLinkTable(base::SharedMemory* table_memory); 48 virtual void SendVisitedLinkTable(base::SharedMemory* table_memory);
49 virtual void AddVisitedLinks( 49 virtual void AddVisitedLinks(
50 const VisitedLinkCommon::Fingerprints& visited_links); 50 const VisitedLinkCommon::Fingerprints& visited_links);
51 virtual void ResetVisitedLinks(); 51 virtual void ResetVisitedLinks();
52 virtual bool FastShutdownIfPossible(); 52 virtual bool FastShutdownIfPossible();
53 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); 53 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms);
54 virtual base::ProcessHandle GetHandle(); 54 virtual base::ProcessHandle GetHandle();
55 55
56 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 56 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id,
57 TransportDIB::Handle dib_handle);
57 58
58 // IPC::Channel::Sender via RenderProcessHost. 59 // IPC::Channel::Sender via RenderProcessHost.
59 virtual bool Send(IPC::Message* msg); 60 virtual bool Send(IPC::Message* msg);
60 61
61 // IPC::Channel::Listener via RenderProcessHost. 62 // IPC::Channel::Listener via RenderProcessHost.
62 virtual void OnMessageReceived(const IPC::Message& msg); 63 virtual void OnMessageReceived(const IPC::Message& msg);
63 virtual void OnChannelConnected(int32 peer_pid); 64 virtual void OnChannelConnected(int32 peer_pid);
64 65
65 // Attaches the factory object so we can remove this object in its destructor 66 // Attaches the factory object so we can remove this object in its destructor
66 // and prevent MockRenderProcessHostFacotry from deleting it. 67 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 26 matching lines...) Expand all
93 private: 94 private:
94 // A list of MockRenderProcessHosts created by this object. This list is used 95 // A list of MockRenderProcessHosts created by this object. This list is used
95 // for deleting all MockRenderProcessHosts that have not deleted by a test in 96 // for deleting all MockRenderProcessHosts that have not deleted by a test in
96 // the destructor and prevent them from being leaked. 97 // the destructor and prevent them from being leaked.
97 mutable ScopedVector<MockRenderProcessHost> processes_; 98 mutable ScopedVector<MockRenderProcessHost> processes_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 100 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
100 }; 101 };
101 102
102 #endif // CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 103 #endif // CHROME_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698