Chromium Code Reviews| OLD | NEW |
|---|---|
| 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> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/public/browser/global_request_id.h" | 15 #include "content/public/browser/global_request_id.h" |
| 16 #include "content/public/browser/session_storage_namespace.h" | 16 #include "content/public/browser/session_storage_namespace.h" |
| 17 #include "content/public/browser/site_instance.h" | 17 #include "content/public/browser/site_instance.h" |
| 18 #include "content/public/common/referrer.h" | 18 #include "content/public/common/referrer.h" |
| 19 #include "ui/base/page_transition_types.h" | 19 #include "ui/base/page_transition_types.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 | 23 |
| 24 class RefCountedMemory; | 24 class RefCountedMemory; |
| 25 class RefCountedString; | |
| 25 | 26 |
| 26 } // namespace base | 27 } // namespace base |
| 27 | 28 |
| 28 namespace content { | 29 namespace content { |
| 29 | 30 |
| 30 class BrowserContext; | 31 class BrowserContext; |
| 31 class NavigationEntry; | 32 class NavigationEntry; |
| 32 class WebContents; | 33 class WebContents; |
| 33 | 34 |
| 34 // A NavigationController maintains the back-forward list for a WebContents and | 35 // A NavigationController maintains the back-forward list for a WebContents and |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 GlobalRequestID transferred_global_request_id; | 155 GlobalRequestID transferred_global_request_id; |
| 155 | 156 |
| 156 // Used in LOAD_TYPE_DATA loads only. Used for specifying a base URL | 157 // Used in LOAD_TYPE_DATA loads only. Used for specifying a base URL |
| 157 // for pages loaded via data URLs. | 158 // for pages loaded via data URLs. |
| 158 GURL base_url_for_data_url; | 159 GURL base_url_for_data_url; |
| 159 | 160 |
| 160 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for | 161 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for |
| 161 // data loads. | 162 // data loads. |
| 162 GURL virtual_url_for_data_url; | 163 GURL virtual_url_for_data_url; |
| 163 | 164 |
| 165 #if defined(OS_ANDROID) | |
| 166 // Used in LOAD_TYPE_DATA loads only. The real data URI represented | |
|
Charlie Reis
2015/12/14 20:35:57
nit: is represented
mnaganov (inactive)
2015/12/15 18:30:29
Done.
| |
| 167 // as a string to circumvent the restriction on GURL size. | |
|
Charlie Reis
2015/12/14 20:35:57
nit: Can you mention something about it being opti
mnaganov (inactive)
2015/12/15 18:30:29
Done.
| |
| 168 scoped_refptr<base::RefCountedString> data_url_as_string; | |
| 169 #endif | |
| 170 | |
| 164 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the | 171 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the |
| 165 // post data of the load. Ownership is transferred to NavigationController | 172 // post data of the load. Ownership is transferred to NavigationController |
| 166 // after LoadURLWithParams call. | 173 // after LoadURLWithParams call. |
| 167 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; | 174 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; |
| 168 | 175 |
| 169 // True if this URL should be able to access local resources. | 176 // True if this URL should be able to access local resources. |
| 170 bool can_load_local_resources; | 177 bool can_load_local_resources; |
| 171 | 178 |
| 172 // Indicates whether this navigation should replace the current | 179 // Indicates whether this navigation should replace the current |
| 173 // navigation entry. | 180 // navigation entry. |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 475 | 482 |
| 476 private: | 483 private: |
| 477 // This interface should only be implemented inside content. | 484 // This interface should only be implemented inside content. |
| 478 friend class NavigationControllerImpl; | 485 friend class NavigationControllerImpl; |
| 479 NavigationController() {} | 486 NavigationController() {} |
| 480 }; | 487 }; |
| 481 | 488 |
| 482 } // namespace content | 489 } // namespace content |
| 483 | 490 |
| 484 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 491 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |