Chromium Code Reviews| 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_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_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/values.h" | |
|
sreeram
2013/01/30 21:41:39
Remove this? (it appears to be unused)
Mathieu
2013/01/30 21:55:12
Done.
| |
| 10 #include "content/browser/site_instance_impl.h" | 11 #include "content/browser/site_instance_impl.h" |
| 11 #include "content/public/browser/favicon_status.h" | 12 #include "content/public/browser/favicon_status.h" |
| 12 #include "content/public/browser/global_request_id.h" | 13 #include "content/public/browser/global_request_id.h" |
| 13 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 14 #include "content/public/common/ssl_status.h" | 15 #include "content/public/common/ssl_status.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 class CONTENT_EXPORT NavigationEntryImpl | 19 class CONTENT_EXPORT NavigationEntryImpl |
| 19 : public NON_EXPORTED_BASE(NavigationEntry) { | 20 : public NON_EXPORTED_BASE(NavigationEntry) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; | 69 virtual void SetOriginalRequestURL(const GURL& original_url) OVERRIDE; |
| 69 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; | 70 virtual const GURL& GetOriginalRequestURL() const OVERRIDE; |
| 70 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; | 71 virtual void SetIsOverridingUserAgent(bool override) OVERRIDE; |
| 71 virtual bool GetIsOverridingUserAgent() const OVERRIDE; | 72 virtual bool GetIsOverridingUserAgent() const OVERRIDE; |
| 72 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; | 73 virtual void SetTimestamp(base::Time timestamp) OVERRIDE; |
| 73 virtual base::Time GetTimestamp() const OVERRIDE; | 74 virtual base::Time GetTimestamp() const OVERRIDE; |
| 74 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; | 75 virtual void SetCanLoadLocalResources(bool allow) OVERRIDE; |
| 75 virtual bool GetCanLoadLocalResources() const OVERRIDE; | 76 virtual bool GetCanLoadLocalResources() const OVERRIDE; |
| 76 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE; | 77 virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE; |
| 77 virtual const std::string& GetFrameToNavigate() const OVERRIDE; | 78 virtual const std::string& GetFrameToNavigate() const OVERRIDE; |
| 79 virtual void SetExtraData(const std::string& key, | |
| 80 const string16& data) OVERRIDE; | |
| 81 virtual const bool GetExtraData(const std::string& key, | |
| 82 string16* out_value) const OVERRIDE; | |
|
sreeram
2013/01/30 21:41:39
virtual bool GetExtraData(const std::string& key,
Mathieu
2013/01/30 21:55:12
Done. Renamed throughout.
| |
| 78 | 83 |
| 79 void set_unique_id(int unique_id) { | 84 void set_unique_id(int unique_id) { |
| 80 unique_id_ = unique_id; | 85 unique_id_ = unique_id; |
| 81 } | 86 } |
| 82 | 87 |
| 83 // The SiteInstance tells us how to share sub-processes. This is a reference | 88 // The SiteInstance tells us how to share sub-processes. This is a reference |
| 84 // counted pointer to a shared site instance. | 89 // counted pointer to a shared site instance. |
| 85 // | 90 // |
| 86 // Note that the SiteInstance should usually not be changed after it is set, | 91 // Note that the SiteInstance should usually not be changed after it is set, |
| 87 // but this may happen if the NavigationEntry was cloned and needs to use a | 92 // but this may happen if the NavigationEntry was cloned and needs to use a |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 258 bool should_replace_entry_; | 263 bool should_replace_entry_; |
| 259 | 264 |
| 260 // Set when this entry should be able to access local file:// resources. This | 265 // Set when this entry should be able to access local file:// resources. This |
| 261 // value is not needed after the entry commits and is not persisted. | 266 // value is not needed after the entry commits and is not persisted. |
| 262 bool can_load_local_resources_; | 267 bool can_load_local_resources_; |
| 263 | 268 |
| 264 // If not empty, the name of the frame to navigate. This field is not | 269 // If not empty, the name of the frame to navigate. This field is not |
| 265 // persisted, because it is currently only used in tests. | 270 // persisted, because it is currently only used in tests. |
| 266 std::string frame_to_navigate_; | 271 std::string frame_to_navigate_; |
| 267 | 272 |
| 273 // Used to store extra data to support browser features. | |
| 274 typedef std::map<std::string, string16> ExtraDataMap; | |
|
sreeram
2013/01/30 21:41:39
This typedef seems unnecessary, given that it's on
Mathieu
2013/01/30 21:55:12
Done.
| |
| 275 ExtraDataMap extra_data_; | |
| 276 | |
| 268 // Copy and assignment is explicitly allowed for this class. | 277 // Copy and assignment is explicitly allowed for this class. |
| 269 }; | 278 }; |
| 270 | 279 |
| 271 } // namespace content | 280 } // namespace content |
| 272 | 281 |
| 273 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 282 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |