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

Unified 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: Added unit test + fixed bug in parent_is_render_frame_computation 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2db34e1288c60b7224ecec6d4c9f851eaf9ed5c
--- /dev/null
+++ b/content/browser/frame_host/navigation_request.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
+#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
+
+#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
+#include "content/browser/frame_host/navigation_request_info.h"
+
+namespace content {
+struct NavigationRequestInfo;
+class ResourceRequestBody;
+
+// A UI thread object that owns a navigation request until it commits. It
+// ensures the UI thread can start a navigation request in the
+// ResourceDispatcherHost (that lives on the IO thread). For a more precise
+// description of the intended interactions between UI and IO thread during
+// navigation, please see the PlzNavigate design doc.
nasko 2014/07/07 11:35:07 While I love the PlzNavigate codename, I'm not sur
clamy 2014/07/07 13:36:23 Done.
+class NavigationRequest {
+ public:
+ explicit NavigationRequest(const NavigationRequestInfo& info,
+ int64 frame_node_id);
+ ~NavigationRequest();
+
+ NavigationRequestInfo info() const { return info_; }
nasko 2014/07/07 11:35:07 Wouldn't this return a full copy? Is this the inte
clamy 2014/07/07 13:36:23 Done.
+ int64 frame_node_id() const { return frame_node_id_; }
+
+ // Called on the UI thread by the RenderFrameHostManager that owns the
nasko 2014/07/07 11:35:07 nit: s/that/which/
clamy 2014/07/07 13:36:23 Done.
+ // NavigationRequest.
+ void BeginNavigation(scoped_refptr<ResourceRequestBody> body);
+
+ private:
+ const NavigationRequestInfo info_;
+ const int64 frame_node_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request_info.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698