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" | |
13 #include "base/string16.h" | 12 #include "base/string16.h" |
14 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
15 #include "content/public/browser/global_request_id.h" | 14 #include "content/public/browser/global_request_id.h" |
16 #include "content/public/common/page_transition_types.h" | 15 #include "content/public/common/page_transition_types.h" |
17 #include "content/public/common/referrer.h" | 16 #include "content/public/common/referrer.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 | 18 #include "webkit/glue/resource_request_body.h" |
20 namespace base { | |
21 | |
22 class RefCountedMemory; | |
23 | |
24 } // namespace base | |
25 | 19 |
26 namespace content { | 20 namespace content { |
27 | 21 |
28 class BrowserContext; | 22 class BrowserContext; |
29 class NavigationEntry; | 23 class NavigationEntry; |
30 class SessionStorageNamespace; | 24 class SessionStorageNamespace; |
31 class WebContents; | 25 class WebContents; |
32 | 26 |
33 // Used to store the mapping of a StoragePartition id to | 27 // Used to store the mapping of a StoragePartition id to |
34 // SessionStorageNamespace. | 28 // SessionStorageNamespace. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // for pages loaded via data URLs. | 133 // for pages loaded via data URLs. |
140 GURL base_url_for_data_url; | 134 GURL base_url_for_data_url; |
141 | 135 |
142 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for | 136 // Used in LOAD_TYPE_DATA loads only. URL displayed to the user for |
143 // data loads. | 137 // data loads. |
144 GURL virtual_url_for_data_url; | 138 GURL virtual_url_for_data_url; |
145 | 139 |
146 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the | 140 // Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the |
147 // post data of the load. Ownership is transferred to NavigationController | 141 // post data of the load. Ownership is transferred to NavigationController |
148 // after LoadURLWithParams call. | 142 // after LoadURLWithParams call. |
149 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; | 143 scoped_refptr<webkit_glue::ResourceRequestBody> browser_initiated_post_data; |
150 | 144 |
151 // True if this URL should be able to access local resources. | 145 // True if this URL should be able to access local resources. |
152 bool can_load_local_resources; | 146 bool can_load_local_resources; |
153 | 147 |
154 // Indicates whether this navigation involves a cross-process redirect, | 148 // Indicates whether this navigation involves a cross-process redirect, |
155 // in which case it should replace the current navigation entry. | 149 // in which case it should replace the current navigation entry. |
156 bool is_cross_site_redirect; | 150 bool is_cross_site_redirect; |
157 | 151 |
158 explicit LoadURLParams(const GURL& url); | 152 explicit LoadURLParams(const GURL& url); |
159 ~LoadURLParams(); | 153 ~LoadURLParams(); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 369 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
376 | 370 |
377 // Removes all the entries except the active entry. If there is a new pending | 371 // Removes all the entries except the active entry. If there is a new pending |
378 // navigation it is preserved. | 372 // navigation it is preserved. |
379 virtual void PruneAllButActive() = 0; | 373 virtual void PruneAllButActive() = 0; |
380 }; | 374 }; |
381 | 375 |
382 } // namespace content | 376 } // namespace content |
383 | 377 |
384 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 378 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |