| OLD | NEW |
| 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 "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; | 74 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; |
| 75 #if defined(ENABLE_WEBRTC) | 75 #if defined(ENABLE_WEBRTC) |
| 76 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; | 76 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; |
| 77 virtual void DisableAecDump() OVERRIDE; | 77 virtual void DisableAecDump() OVERRIDE; |
| 78 virtual void SetWebRtcLogMessageCallback( | 78 virtual void SetWebRtcLogMessageCallback( |
| 79 base::Callback<void(const std::string&)> callback) OVERRIDE; | 79 base::Callback<void(const std::string&)> callback) OVERRIDE; |
| 80 #endif | 80 #endif |
| 81 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) | 81 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) |
| 82 OVERRIDE; | 82 OVERRIDE; |
| 83 virtual void NotifyTimezoneChange() OVERRIDE; | 83 virtual void NotifyTimezoneChange() OVERRIDE; |
| 84 virtual BlobStorageHost* GetBlobStorageHost() const OVERRIDE; |
| 84 | 85 |
| 85 // IPC::Sender via RenderProcessHost. | 86 // IPC::Sender via RenderProcessHost. |
| 86 virtual bool Send(IPC::Message* msg) OVERRIDE; | 87 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 87 | 88 |
| 88 // IPC::Listener via RenderProcessHost. | 89 // IPC::Listener via RenderProcessHost. |
| 89 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 90 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 90 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 91 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 91 | 92 |
| 92 // Attaches the factory object so we can remove this object in its destructor | 93 // Attaches the factory object so we can remove this object in its destructor |
| 93 // and prevent MockRenderProcessHostFacotry from deleting it. | 94 // and prevent MockRenderProcessHostFacotry from deleting it. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 140 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 140 // the destructor and prevent them from being leaked. | 141 // the destructor and prevent them from being leaked. |
| 141 mutable ScopedVector<MockRenderProcessHost> processes_; | 142 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 142 | 143 |
| 143 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 144 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace content | 147 } // namespace content |
| 147 | 148 |
| 148 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 149 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |