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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 6 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
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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 mojo::ScopedMessagePipeHandle handle); 238 mojo::ScopedMessagePipeHandle handle);
239 239
240 template <typename Interface> 240 template <typename Interface>
241 void ConnectTo(const base::StringPiece& service_name, 241 void ConnectTo(const base::StringPiece& service_name,
242 mojo::InterfacePtr<Interface>* ptr) { 242 mojo::InterfacePtr<Interface>* ptr) {
243 mojo::MessagePipe pipe; 243 mojo::MessagePipe pipe;
244 ptr->Bind(pipe.handle0.Pass()); 244 ptr->Bind(pipe.handle0.Pass());
245 ConnectTo(service_name, pipe.handle1.Pass()); 245 ConnectTo(service_name, pipe.handle1.Pass());
246 } 246 }
247 247
248 // Call this function to resume the navigation when it was deferred
249 // immediately after receiving response headers.
250 void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id);
251
248 protected: 252 protected:
249 // A proxy for our IPC::Channel that lives on the IO thread (see 253 // A proxy for our IPC::Channel that lives on the IO thread (see
250 // browser_process.h) 254 // browser_process.h)
251 scoped_ptr<IPC::ChannelProxy> channel_; 255 scoped_ptr<IPC::ChannelProxy> channel_;
252 256
253 // True if fast shutdown has been performed on this RPH. 257 // True if fast shutdown has been performed on this RPH.
254 bool fast_shutdown_started_; 258 bool fast_shutdown_started_;
255 259
256 // True if we've posted a DeleteTask and will be deleted soon. 260 // True if we've posted a DeleteTask and will be deleted soon.
257 bool deleting_soon_; 261 bool deleting_soon_;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 base::TimeTicks survive_for_worker_start_time_; 428 base::TimeTicks survive_for_worker_start_time_;
425 429
426 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 430 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
427 431
428 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 432 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
429 }; 433 };
430 434
431 } // namespace content 435 } // namespace content
432 436
433 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 437 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698