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_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // so it must be cleaned up on its own. | 121 // so it must be cleaned up on its own. |
122 void OnCreateWindow( | 122 void OnCreateWindow( |
123 const ViewHostMsg_CreateWindow_Params& params, | 123 const ViewHostMsg_CreateWindow_Params& params, |
124 int* route_id, | 124 int* route_id, |
125 int* main_frame_route_id, | 125 int* main_frame_route_id, |
126 int* surface_id, | 126 int* surface_id, |
127 int64* cloned_session_storage_namespace_id); | 127 int64* cloned_session_storage_namespace_id); |
128 | 128 |
129 // The Frame expects to be returned a valid route_id different from its own. | 129 // The Frame expects to be returned a valid route_id different from its own. |
130 void OnCreateChildFrame(int new_frame_routing_id, | 130 void OnCreateChildFrame(int new_frame_routing_id, |
131 int64 parent_frame_id, | |
132 int64 frame_id, | |
133 const std::string& frame_name, | 131 const std::string& frame_name, |
134 int* new_render_frame_id); | 132 int* new_render_frame_id); |
135 | 133 |
136 #if defined(OS_WIN) | 134 #if defined(OS_WIN) |
137 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, | 135 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, |
138 base::SharedMemoryHandle* browser_handle); | 136 base::SharedMemoryHandle* browser_handle); |
139 #endif | 137 #endif |
140 | 138 |
141 IPC::TestSink sink_; | 139 IPC::TestSink sink_; |
142 | 140 |
(...skipping 17 matching lines...) Expand all Loading... |
160 // A list of message filters added to this thread. | 158 // A list of message filters added to this thread. |
161 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; | 159 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; |
162 | 160 |
163 // Observers to notify. | 161 // Observers to notify. |
164 ObserverList<RenderProcessObserver> observers_; | 162 ObserverList<RenderProcessObserver> observers_; |
165 }; | 163 }; |
166 | 164 |
167 } // namespace content | 165 } // namespace content |
168 | 166 |
169 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 167 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
OLD | NEW |