Chromium Code Reviews| 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/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "content/browser/frame_host/frame_navigation_entry.h" | 11 #include "content/browser/frame_host/frame_navigation_entry.h" |
| 12 #include "content/browser/site_instance_impl.h" | 12 #include "content/browser/site_instance_impl.h" |
| 13 #include "content/common/frame_message_enums.h" | |
| 13 #include "content/public/browser/favicon_status.h" | 14 #include "content/public/browser/favicon_status.h" |
| 14 #include "content/public/browser/global_request_id.h" | 15 #include "content/public/browser/global_request_id.h" |
| 15 #include "content/public/browser/navigation_entry.h" | 16 #include "content/public/browser/navigation_entry.h" |
| 16 #include "content/public/common/page_state.h" | 17 #include "content/public/common/page_state.h" |
| 17 #include "content/public/common/ssl_status.h" | 18 #include "content/public/common/ssl_status.h" |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 21 class NavigationControllerImpl; | |
| 22 struct CommitNavigationParams; | |
| 23 struct CommonNavigationParams; | |
| 24 struct HistoryNavigationParams; | |
| 25 struct StartNavigationParams; | |
| 20 | 26 |
| 21 class CONTENT_EXPORT NavigationEntryImpl | 27 class CONTENT_EXPORT NavigationEntryImpl |
| 22 : public NON_EXPORTED_BASE(NavigationEntry) { | 28 : public NON_EXPORTED_BASE(NavigationEntry) { |
| 23 public: | 29 public: |
| 24 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry); | 30 static NavigationEntryImpl* FromNavigationEntry(NavigationEntry* entry); |
| 25 | 31 |
| 26 // The value of bindings() before it is set during commit. | 32 // The value of bindings() before it is set during commit. |
| 27 static int kInvalidBindings; | 33 static int kInvalidBindings; |
| 28 | 34 |
| 29 NavigationEntryImpl(); | 35 NavigationEntryImpl(); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 int64 frame_tree_node_id() const { | 227 int64 frame_tree_node_id() const { |
| 222 return frame_tree_node_id_; | 228 return frame_tree_node_id_; |
| 223 } | 229 } |
| 224 void set_frame_tree_node_id(int64 frame_tree_node_id) { | 230 void set_frame_tree_node_id(int64 frame_tree_node_id) { |
| 225 frame_tree_node_id_ = frame_tree_node_id; | 231 frame_tree_node_id_ = frame_tree_node_id; |
| 226 } | 232 } |
| 227 | 233 |
| 228 // Returns the history URL for a data URL to use in Blink. | 234 // Returns the history URL for a data URL to use in Blink. |
| 229 GURL GetHistoryURLForDataURL() const; | 235 GURL GetHistoryURLForDataURL() const; |
| 230 | 236 |
| 237 CommonNavigationParams ConstructCommonNavigationParams( | |
|
Charlie Reis
2015/03/17 04:01:03
These belong much higher up in the class, after th
| |
| 238 FrameMsg_Navigate_Type::Value navigation_type) const; | |
| 239 CommitNavigationParams ConstructCommitNavigationParams( | |
| 240 base::TimeTicks navigation_start) const; | |
| 241 HistoryNavigationParams ConstructHistoryNavigationParams( | |
| 242 NavigationControllerImpl* controller) const; | |
|
Charlie Reis
2015/03/17 04:01:03
NavigationEntryImpl should not depend on Navigatio
| |
| 243 StartNavigationParams ConstructStartNavigationParams() const; | |
| 244 | |
| 231 #if defined(OS_ANDROID) | 245 #if defined(OS_ANDROID) |
| 232 base::TimeTicks intent_received_timestamp() const { | 246 base::TimeTicks intent_received_timestamp() const { |
| 233 return intent_received_timestamp_; | 247 return intent_received_timestamp_; |
| 234 } | 248 } |
| 235 | 249 |
| 236 void set_intent_received_timestamp( | 250 void set_intent_received_timestamp( |
| 237 const base::TimeTicks intent_received_timestamp) { | 251 const base::TimeTicks intent_received_timestamp) { |
| 238 intent_received_timestamp_ = intent_received_timestamp; | 252 intent_received_timestamp_ = intent_received_timestamp; |
| 239 } | 253 } |
| 240 #endif | 254 #endif |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 368 // persisted, unless specific data is taken out/put back in at save/restore | 382 // persisted, unless specific data is taken out/put back in at save/restore |
| 369 // time (see TabNavigation for an example of this). | 383 // time (see TabNavigation for an example of this). |
| 370 std::map<std::string, base::string16> extra_data_; | 384 std::map<std::string, base::string16> extra_data_; |
| 371 | 385 |
| 372 // Copy and assignment is explicitly allowed for this class. | 386 // Copy and assignment is explicitly allowed for this class. |
| 373 }; | 387 }; |
| 374 | 388 |
| 375 } // namespace content | 389 } // namespace content |
| 376 | 390 |
| 377 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 391 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |