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

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

Issue 2103733004: Set navigationStart correctly for all load types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Store hasAccessedInitialDocument flag in RenderFrameImpl. Created 4 years, 4 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) 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 shell::InterfaceRegistry* GetInterfaceRegistry() override; 86 shell::InterfaceRegistry* GetInterfaceRegistry() override;
87 shell::InterfaceProvider* GetRemoteInterfaces() override; 87 shell::InterfaceProvider* GetRemoteInterfaces() override;
88 88
89 ////////////////////////////////////////////////////////////////////////// 89 //////////////////////////////////////////////////////////////////////////
90 // The following functions are called by the test itself. 90 // The following functions are called by the test itself.
91 91
92 void set_routing_id(int32_t id) { routing_id_ = id; } 92 void set_routing_id(int32_t id) { routing_id_ = id; }
93 93
94 int32_t opener_id() const { return opener_id_; } 94 int32_t opener_id() const { return opener_id_; }
95 95
96 int32_t new_window_routing_id() const { return new_window_routing_id_; }
97
96 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; } 98 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; }
97 99
100 int32_t new_window_main_frame_routing_id() const {
101 return new_window_main_frame_routing_id_;
102 }
103
104 void set_new_window_main_frame_routing_id(int32_t id) {
105 new_window_main_frame_routing_id_ = id;
106 }
107
98 void set_new_window_main_frame_widget_routing_id(int32_t id) { 108 void set_new_window_main_frame_widget_routing_id(int32_t id) {
99 new_window_main_frame_widget_routing_id_ = id; 109 new_window_main_frame_widget_routing_id_ = id;
100 } 110 }
101 111
102 void set_new_frame_routing_id(int32_t id) { new_frame_routing_id_ = id; } 112 void set_new_frame_routing_id(int32_t id) { new_frame_routing_id_ = id; }
103 113
104 // Simulates the Widget receiving a close message. This should result 114 // Simulates the Widget receiving a close message. This should result
105 // on releasing the internal reference counts and destroying the internal 115 // on releasing the internal reference counts and destroying the internal
106 // state. 116 // state.
107 void SendCloseMessage(); 117 void SendCloseMessage();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 cc::TestSharedBitmapManager shared_bitmap_manager_; 172 cc::TestSharedBitmapManager shared_bitmap_manager_;
163 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; 173 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
164 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; 174 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
165 shell::mojom::InterfaceProviderRequest 175 shell::mojom::InterfaceProviderRequest
166 pending_remote_interface_provider_request_; 176 pending_remote_interface_provider_request_;
167 }; 177 };
168 178
169 } // namespace content 179 } // namespace content
170 180
171 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 181 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/render_view_test.h » ('j') | content/renderer/render_frame_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698