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 "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const SSLStatus& GetSSL() const override; | 97 const SSLStatus& GetSSL() const override; |
98 SSLStatus& GetSSL() override; | 98 SSLStatus& GetSSL() override; |
99 void SetOriginalRequestURL(const GURL& original_url) override; | 99 void SetOriginalRequestURL(const GURL& original_url) override; |
100 const GURL& GetOriginalRequestURL() const override; | 100 const GURL& GetOriginalRequestURL() const override; |
101 void SetIsOverridingUserAgent(bool override) override; | 101 void SetIsOverridingUserAgent(bool override) override; |
102 bool GetIsOverridingUserAgent() const override; | 102 bool GetIsOverridingUserAgent() const override; |
103 void SetTimestamp(base::Time timestamp) override; | 103 void SetTimestamp(base::Time timestamp) override; |
104 base::Time GetTimestamp() const override; | 104 base::Time GetTimestamp() const override; |
105 void SetCanLoadLocalResources(bool allow) override; | 105 void SetCanLoadLocalResources(bool allow) override; |
106 bool GetCanLoadLocalResources() const override; | 106 bool GetCanLoadLocalResources() const override; |
107 void SetFrameToNavigate(const std::string& frame_name) override; | |
108 const std::string& GetFrameToNavigate() const override; | |
109 void SetExtraData(const std::string& key, | 107 void SetExtraData(const std::string& key, |
110 const base::string16& data) override; | 108 const base::string16& data) override; |
111 bool GetExtraData(const std::string& key, | 109 bool GetExtraData(const std::string& key, |
112 base::string16* data) const override; | 110 base::string16* data) const override; |
113 void ClearExtraData(const std::string& key) override; | 111 void ClearExtraData(const std::string& key) override; |
114 void SetHttpStatusCode(int http_status_code) override; | 112 void SetHttpStatusCode(int http_status_code) override; |
115 int GetHttpStatusCode() const override; | 113 int GetHttpStatusCode() const override; |
116 void SetRedirectChain(const std::vector<GURL>& redirects) override; | 114 void SetRedirectChain(const std::vector<GURL>& redirects) override; |
117 const std::vector<GURL>& GetRedirectChain() const override; | 115 const std::vector<GURL>& GetRedirectChain() const override; |
118 bool IsRestored() const override; | 116 bool IsRestored() const override; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 // history both on the renderer and browser side. The browser side history | 406 // history both on the renderer and browser side. The browser side history |
409 // won't be cleared until the renderer has committed this navigation. This | 407 // won't be cleared until the renderer has committed this navigation. This |
410 // entry is not persisted by the session restore system, as it is always | 408 // entry is not persisted by the session restore system, as it is always |
411 // cleared in |ResetForCommit|. | 409 // cleared in |ResetForCommit|. |
412 bool should_clear_history_list_; | 410 bool should_clear_history_list_; |
413 | 411 |
414 // Set when this entry should be able to access local file:// resources. This | 412 // Set when this entry should be able to access local file:// resources. This |
415 // value is not needed after the entry commits and is not persisted. | 413 // value is not needed after the entry commits and is not persisted. |
416 bool can_load_local_resources_; | 414 bool can_load_local_resources_; |
417 | 415 |
418 // If not empty, the name of the frame to navigate. This field is not | |
419 // persisted, because it is currently only used in tests. | |
420 std::string frame_to_navigate_; | |
421 | |
422 // If not -1, this indicates which FrameTreeNode to navigate. This field is | 416 // If not -1, this indicates which FrameTreeNode to navigate. This field is |
423 // not persisted because it is experimental and only used when the | 417 // not persisted because it is experimental and only used when the |
424 // --site-per-process flag is passed. It is cleared in |ResetForCommit| | 418 // --site-per-process flag is passed. It is cleared in |ResetForCommit| |
425 // because we only use it while the navigation is pending. | 419 // because we only use it while the navigation is pending. |
426 // TODO(creis): Move this to FrameNavigationEntry. | 420 // TODO(creis): Move this to FrameNavigationEntry. |
427 int64 frame_tree_node_id_; | 421 int64 frame_tree_node_id_; |
428 | 422 |
429 #if defined(OS_ANDROID) | 423 #if defined(OS_ANDROID) |
430 // The time at which Chrome received the Android Intent that triggered this | 424 // The time at which Chrome received the Android Intent that triggered this |
431 // URL load operation. Reset at commit and not persisted. | 425 // URL load operation. Reset at commit and not persisted. |
432 base::TimeTicks intent_received_timestamp_; | 426 base::TimeTicks intent_received_timestamp_; |
433 #endif | 427 #endif |
434 | 428 |
435 // Used to store extra data to support browser features. This member is not | 429 // Used to store extra data to support browser features. This member is not |
436 // persisted, unless specific data is taken out/put back in at save/restore | 430 // persisted, unless specific data is taken out/put back in at save/restore |
437 // time (see TabNavigation for an example of this). | 431 // time (see TabNavigation for an example of this). |
438 std::map<std::string, base::string16> extra_data_; | 432 std::map<std::string, base::string16> extra_data_; |
439 | 433 |
440 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 434 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
441 }; | 435 }; |
442 | 436 |
443 } // namespace content | 437 } // namespace content |
444 | 438 |
445 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 439 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |