Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: content/browser/web_contents/navigation_entry_impl.h

Issue 10544175: Add an ability to call WebKit's WebFrame::loadData via NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments addressed Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 17 matching lines...) Expand all
28 const string16& title, 28 const string16& title,
29 PageTransition transition_type, 29 PageTransition transition_type,
30 bool is_renderer_initiated); 30 bool is_renderer_initiated);
31 virtual ~NavigationEntryImpl(); 31 virtual ~NavigationEntryImpl();
32 32
33 // NavigationEntry implementation: 33 // NavigationEntry implementation:
34 virtual int GetUniqueID() const OVERRIDE; 34 virtual int GetUniqueID() const OVERRIDE;
35 virtual PageType GetPageType() const OVERRIDE; 35 virtual PageType GetPageType() const OVERRIDE;
36 virtual void SetURL(const GURL& url) OVERRIDE; 36 virtual void SetURL(const GURL& url) OVERRIDE;
37 virtual const GURL& GetURL() const OVERRIDE; 37 virtual const GURL& GetURL() const OVERRIDE;
38 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE;
39 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE;
38 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; 40 virtual void SetReferrer(const Referrer& referrer) OVERRIDE;
39 virtual const Referrer& GetReferrer() const OVERRIDE; 41 virtual const Referrer& GetReferrer() const OVERRIDE;
40 virtual void SetVirtualURL(const GURL& url) OVERRIDE; 42 virtual void SetVirtualURL(const GURL& url) OVERRIDE;
41 virtual const GURL& GetVirtualURL() const OVERRIDE; 43 virtual const GURL& GetVirtualURL() const OVERRIDE;
42 virtual void SetTitle(const string16& title) OVERRIDE; 44 virtual void SetTitle(const string16& title) OVERRIDE;
43 virtual const string16& GetTitle() const OVERRIDE; 45 virtual const string16& GetTitle() const OVERRIDE;
44 virtual void SetContentState(const std::string& state) OVERRIDE; 46 virtual void SetContentState(const std::string& state) OVERRIDE;
45 virtual const std::string& GetContentState() const OVERRIDE; 47 virtual const std::string& GetContentState() const OVERRIDE;
46 virtual void SetPageID(int page_id) OVERRIDE; 48 virtual void SetPageID(int page_id) OVERRIDE;
47 virtual int32 GetPageID() const OVERRIDE; 49 virtual int32 GetPageID() const OVERRIDE;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 GURL user_typed_url_; 181 GURL user_typed_url_;
180 bool has_post_data_; 182 bool has_post_data_;
181 int64 post_id_; 183 int64 post_id_;
182 RestoreType restore_type_; 184 RestoreType restore_type_;
183 GURL original_request_url_; 185 GURL original_request_url_;
184 bool is_overriding_user_agent_; 186 bool is_overriding_user_agent_;
185 187
186 // This member is not persisted with sesssion restore. 188 // This member is not persisted with sesssion restore.
187 std::string extra_headers_; 189 std::string extra_headers_;
188 190
191 // Used for specifying base URL for pages loaded via data URLs. Not persisted.
192 GURL base_url_for_data_url_;
193
189 // Whether the entry, while loading, was created for a renderer-initiated 194 // Whether the entry, while loading, was created for a renderer-initiated
190 // navigation. This dictates whether the URL should be displayed before the 195 // navigation. This dictates whether the URL should be displayed before the
191 // navigation commits. It is cleared on commit and not persisted. 196 // navigation commits. It is cleared on commit and not persisted.
192 bool is_renderer_initiated_; 197 bool is_renderer_initiated_;
193 198
194 // This is a cached version of the result of GetTitleForDisplay. It prevents 199 // This is a cached version of the result of GetTitleForDisplay. It prevents
195 // us from having to do URL formatting on the URL every time the title is 200 // us from having to do URL formatting on the URL every time the title is
196 // displayed. When the URL, virtual URL, or title is set, this should be 201 // displayed. When the URL, virtual URL, or title is set, this should be
197 // cleared to force a refresh. 202 // cleared to force a refresh.
198 mutable string16 cached_display_title_; 203 mutable string16 cached_display_title_;
(...skipping 13 matching lines...) Expand all
212 // instance, instead of a new navigation. This value should not be persisted 217 // instance, instead of a new navigation. This value should not be persisted
213 // and is not needed after the entry commits. 218 // and is not needed after the entry commits.
214 bool is_cross_site_reload_; 219 bool is_cross_site_reload_;
215 220
216 // Copy and assignment is explicitly allowed for this class. 221 // Copy and assignment is explicitly allowed for this class.
217 }; 222 };
218 223
219 } // namespace content 224 } // namespace content
220 225
221 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ 226 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/navigation_controller_impl.cc ('k') | content/browser/web_contents/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698