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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort out the tests Created 5 years 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_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 GlobalRequestID transferred_global_request_id; 154 GlobalRequestID transferred_global_request_id;
155 155
156 // Used in LOAD_TYPE_DATA loads only. Used for specifying a base URL 156 // Used in LOAD_TYPE_DATA loads only. Used for specifying a base URL
157 // for pages loaded via data URLs. 157 // for pages loaded via data URLs.
158 GURL base_url_for_data_url; 158 GURL base_url_for_data_url;
159 159
160 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for 160 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for
161 // data loads. 161 // data loads.
162 GURL virtual_url_for_data_url; 162 GURL virtual_url_for_data_url;
163 163
164 // Used in LOAD_TYPE_DATA loads only. The real data URI represented
165 // as a string to circumvent the restriction on GURL size.
166 std::string data_url_as_string;
167
164 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the 168 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the
165 // post data of the load. Ownership is transferred to NavigationController 169 // post data of the load. Ownership is transferred to NavigationController
166 // after LoadURLWithParams call. 170 // after LoadURLWithParams call.
167 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; 171 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data;
168 172
169 // True if this URL should be able to access local resources. 173 // True if this URL should be able to access local resources.
170 bool can_load_local_resources; 174 bool can_load_local_resources;
171 175
172 // Indicates whether this navigation should replace the current 176 // Indicates whether this navigation should replace the current
173 // navigation entry. 177 // navigation entry.
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 479
476 private: 480 private:
477 // This interface should only be implemented inside content. 481 // This interface should only be implemented inside content.
478 friend class NavigationControllerImpl; 482 friend class NavigationControllerImpl;
479 NavigationController() {} 483 NavigationController() {}
480 }; 484 };
481 485
482 } // namespace content 486 } // namespace content
483 487
484 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 488 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698