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

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

Issue 906283003: PlzNavigate: Support data urls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_FRAME_HOST_NAVIGATION_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Note: |body| is sent to the IO thread when calling BeginNavigation, and 63 // Note: |body| is sent to the IO thread when calling BeginNavigation, and
64 // should no longer be manipulated afterwards on the UI thread. 64 // should no longer be manipulated afterwards on the UI thread.
65 static scoped_ptr<NavigationRequest> CreateRendererInitiated( 65 static scoped_ptr<NavigationRequest> CreateRendererInitiated(
66 FrameTreeNode* frame_tree_node, 66 FrameTreeNode* frame_tree_node,
67 const CommonNavigationParams& common_params, 67 const CommonNavigationParams& common_params,
68 const BeginNavigationParams& begin_params, 68 const BeginNavigationParams& begin_params,
69 scoped_refptr<ResourceRequestBody> body); 69 scoped_refptr<ResourceRequestBody> body);
70 70
71 ~NavigationRequest() override; 71 ~NavigationRequest() override;
72 72
73 // Called on the UI thread by the Navigator to start the navigation on the IO 73 // Called on the UI thread by the Navigator to start the navigation. Returns
74 // thread. 74 // whether a request was made on the IO thread.
75 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid 75 // TODO(clamy): see if ResourceRequestBody could be un-refcounted to avoid
76 // threading subtleties. 76 // threading subtleties.
77 void BeginNavigation(); 77 bool BeginNavigation();
78 78
79 const CommonNavigationParams& common_params() const { return common_params_; } 79 const CommonNavigationParams& common_params() const { return common_params_; }
80 80
81 const CommitNavigationParams& commit_params() const { return commit_params_; } 81 const CommitNavigationParams& commit_params() const { return commit_params_; }
82 82
83 NavigationURLLoader* loader_for_testing() const { return loader_.get(); } 83 NavigationURLLoader* loader_for_testing() const { return loader_.get(); }
84 84
85 NavigationState state() const { return state_; } 85 NavigationState state() const { return state_; }
86 86
87 SiteInstanceImpl* source_site_instance() const { 87 SiteInstanceImpl* source_site_instance() const {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 NavigationEntryImpl::RestoreType restore_type_; 154 NavigationEntryImpl::RestoreType restore_type_;
155 bool is_view_source_; 155 bool is_view_source_;
156 int bindings_; 156 int bindings_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 158 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
159 }; 159 };
160 160
161 } // namespace content 161 } // namespace content
162 162
163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 163 #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