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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const GetAudioOutputControllersCallback& callback) const override {} 120 const GetAudioOutputControllersCallback& callback) const override {}
121 121
122 private: 122 private:
123 // Stores IPC messages that would have been sent to the renderer. 123 // Stores IPC messages that would have been sent to the renderer.
124 IPC::TestSink sink_; 124 IPC::TestSink sink_;
125 int bad_msg_count_; 125 int bad_msg_count_;
126 const MockRenderProcessHostFactory* factory_; 126 const MockRenderProcessHostFactory* factory_;
127 int id_; 127 int id_;
128 bool has_connection_; 128 bool has_connection_;
129 BrowserContext* browser_context_; 129 BrowserContext* browser_context_;
130 ObserverList<RenderProcessHostObserver> observers_; 130 base::ObserverList<RenderProcessHostObserver> observers_;
131 131
132 IDMap<RenderWidgetHost> render_widget_hosts_; 132 IDMap<RenderWidgetHost> render_widget_hosts_;
133 int prev_routing_id_; 133 int prev_routing_id_;
134 IDMap<IPC::Listener> listeners_; 134 IDMap<IPC::Listener> listeners_;
135 bool fast_shutdown_started_; 135 bool fast_shutdown_started_;
136 bool deletion_callback_called_; 136 bool deletion_callback_called_;
137 bool is_isolated_guest_; 137 bool is_isolated_guest_;
138 scoped_ptr<base::ProcessHandle> process_handle; 138 scoped_ptr<base::ProcessHandle> process_handle;
139 139
140 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost); 140 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
(...skipping 18 matching lines...) Expand all
159 // for deleting all MockRenderProcessHosts that have not deleted by a test in 159 // for deleting all MockRenderProcessHosts that have not deleted by a test in
160 // the destructor and prevent them from being leaked. 160 // the destructor and prevent them from being leaked.
161 mutable ScopedVector<MockRenderProcessHost> processes_; 161 mutable ScopedVector<MockRenderProcessHost> processes_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698