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

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

Issue 172063002: Unify frame IDs with RenderFrameHost routing IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up Created 6 years, 10 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 | Annotate | Revision Log
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698