OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_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 "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void SetExtraData(const std::string& key, | 82 virtual void SetExtraData(const std::string& key, |
83 const base::string16& data) OVERRIDE; | 83 const base::string16& data) OVERRIDE; |
84 virtual bool GetExtraData(const std::string& key, | 84 virtual bool GetExtraData(const std::string& key, |
85 base::string16* data) const OVERRIDE; | 85 base::string16* data) const OVERRIDE; |
86 virtual void ClearExtraData(const std::string& key) OVERRIDE; | 86 virtual void ClearExtraData(const std::string& key) OVERRIDE; |
87 virtual void SetHttpStatusCode(int http_status_code) OVERRIDE; | 87 virtual void SetHttpStatusCode(int http_status_code) OVERRIDE; |
88 virtual int GetHttpStatusCode() const OVERRIDE; | 88 virtual int GetHttpStatusCode() const OVERRIDE; |
89 virtual void SetRedirectChain(const std::vector<GURL>& redirects) OVERRIDE; | 89 virtual void SetRedirectChain(const std::vector<GURL>& redirects) OVERRIDE; |
90 virtual const std::vector<GURL>& GetRedirectChain() const OVERRIDE; | 90 virtual const std::vector<GURL>& GetRedirectChain() const OVERRIDE; |
91 virtual bool IsRestored() const OVERRIDE; | 91 virtual bool IsRestored() const OVERRIDE; |
| 92 virtual void SetVirtualURLForTransition(const GURL& url) OVERRIDE; |
| 93 virtual const GURL& GetVirtualURLForTransition() const OVERRIDE; |
92 | 94 |
93 // Once a navigation entry is committed, we should no longer track several | 95 // Once a navigation entry is committed, we should no longer track several |
94 // pieces of non-persisted state, as documented on the members below. | 96 // pieces of non-persisted state, as documented on the members below. |
95 void ResetForCommit(); | 97 void ResetForCommit(); |
96 | 98 |
97 void set_unique_id(int unique_id) { | 99 void set_unique_id(int unique_id) { |
98 unique_id_ = unique_id; | 100 unique_id_ = unique_id; |
99 } | 101 } |
100 | 102 |
101 // The SiteInstance tells us how to share sub-processes. This is a reference | 103 // The SiteInstance tells us how to share sub-processes. This is a reference |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // --site-per-process flag is passed. It is cleared in |ResetForCommit| | 333 // --site-per-process flag is passed. It is cleared in |ResetForCommit| |
332 // because we only use it while the navigation is pending. | 334 // because we only use it while the navigation is pending. |
333 // TODO(creis): Move this to FrameNavigationEntry. | 335 // TODO(creis): Move this to FrameNavigationEntry. |
334 int64 frame_tree_node_id_; | 336 int64 frame_tree_node_id_; |
335 | 337 |
336 // Used to store extra data to support browser features. This member is not | 338 // Used to store extra data to support browser features. This member is not |
337 // persisted, unless specific data is taken out/put back in at save/restore | 339 // persisted, unless specific data is taken out/put back in at save/restore |
338 // time (see TabNavigation for an example of this). | 340 // time (see TabNavigation for an example of this). |
339 std::map<std::string, base::string16> extra_data_; | 341 std::map<std::string, base::string16> extra_data_; |
340 | 342 |
| 343 // The virtual URL, when nonempty, will override the actual URL of the page |
| 344 // when we determine the site instance to use. This allows us to redirect |
| 345 // a url to a particular process if need be. This entry is not persisted |
| 346 // since it's only used by the embedder's transition layer. |
| 347 GURL virtual_url_for_transition; |
| 348 |
341 // Copy and assignment is explicitly allowed for this class. | 349 // Copy and assignment is explicitly allowed for this class. |
342 }; | 350 }; |
343 | 351 |
344 } // namespace content | 352 } // namespace content |
345 | 353 |
346 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 354 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |