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; |
irobert
2012/11/09 19:07:57
We decide not to use base::RefCountedMemory* anymo
| |
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 explicit LoadURLParams(const GURL& url); | 148 explicit LoadURLParams(const GURL& url); |
155 ~LoadURLParams(); | 149 ~LoadURLParams(); |
156 | 150 |
157 // Allows copying of LoadURLParams struct. | 151 // Allows copying of LoadURLParams struct. |
158 LoadURLParams(const LoadURLParams& other); | 152 LoadURLParams(const LoadURLParams& other); |
159 LoadURLParams& operator=(const LoadURLParams& other); | 153 LoadURLParams& operator=(const LoadURLParams& other); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
371 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 365 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
372 | 366 |
373 // Removes all the entries except the active entry. If there is a new pending | 367 // Removes all the entries except the active entry. If there is a new pending |
374 // navigation it is preserved. | 368 // navigation it is preserved. |
375 virtual void PruneAllButActive() = 0; | 369 virtual void PruneAllButActive() = 0; |
376 }; | 370 }; |
377 | 371 |
378 } // namespace content | 372 } // namespace content |
379 | 373 |
380 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 374 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |