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

Side by Side Diff: content/browser/frame_host/navigation_request.h

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Przemek's comments + fixed compilation error Created 6 years, 5 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/browser/frame_host/navigation_request_info.h"
11
12 namespace content {
13 struct NavigationRequestInfo;
jam 2014/07/15 00:05:43 nit: not needed because of the header include
clamy 2014/07/15 15:32:13 Done.
14 class ResourceRequestBody;
15
16 // A UI thread object that owns a navigation request until it commits. It
17 // ensures the UI thread can start a navigation request in the
18 // ResourceDispatcherHost (that lives on the IO thread).
19 // TODO(clamy): Describe the interactions between the UI and IO thread during
20 // the navigation following its refactoring.
21 class NavigationRequest {
22 public:
23 explicit NavigationRequest(const NavigationRequestInfo& info,
jam 2014/07/15 00:05:43 nit: don't need explicit since it has more than on
clamy 2014/07/15 15:32:14 Done.
24 int64 frame_node_id);
25 ~NavigationRequest();
26
27 const NavigationRequestInfo& info_for_testing() const { return info_; }
28 int64 frame_node_id() const { return frame_node_id_; }
29
30 // Called on the UI thread by the RenderFrameHostManager which owns the
31 // NavigationRequest.
davidben 2014/07/09 15:14:27 This probably wants a comment that, after calling
clamy 2014/07/15 15:32:14 Done.
32 void BeginNavigation(scoped_refptr<ResourceRequestBody> body);
33
34 private:
35 const NavigationRequestInfo info_;
36 const int64 frame_node_id_;
37
38 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698