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

Side by Side Diff: content/public/browser/navigation_entry.h

Issue 1104603002: Pick frame to navigate in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test cases Created 5 years, 8 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
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // timestamp wasn't available; 176 // timestamp wasn't available;
177 // - or this navigation was copied from a foreign session. 177 // - or this navigation was copied from a foreign session.
178 virtual void SetTimestamp(base::Time timestamp) = 0; 178 virtual void SetTimestamp(base::Time timestamp) = 0;
179 virtual base::Time GetTimestamp() const = 0; 179 virtual base::Time GetTimestamp() const = 0;
180 180
181 // Used to specify if this entry should be able to access local file:// 181 // Used to specify if this entry should be able to access local file://
182 // resources. 182 // resources.
183 virtual void SetCanLoadLocalResources(bool allow) = 0; 183 virtual void SetCanLoadLocalResources(bool allow) = 0;
184 virtual bool GetCanLoadLocalResources() const = 0; 184 virtual bool GetCanLoadLocalResources() const = 0;
185 185
186 // Used to specify which frame to navigate. If empty, the main frame is
187 // navigated. This is currently not persisted in session restore, because it
188 // is currently only used in tests.
189 virtual void SetFrameToNavigate(const std::string& frame_name) = 0;
190 virtual const std::string& GetFrameToNavigate() const = 0;
191
192 // Set extra data on this NavigationEntry according to the specified |key|. 186 // Set extra data on this NavigationEntry according to the specified |key|.
193 // This data is not persisted by default. 187 // This data is not persisted by default.
194 virtual void SetExtraData(const std::string& key, 188 virtual void SetExtraData(const std::string& key,
195 const base::string16& data) = 0; 189 const base::string16& data) = 0;
196 // If present, fills the |data| present at the specified |key|. 190 // If present, fills the |data| present at the specified |key|.
197 virtual bool GetExtraData(const std::string& key, 191 virtual bool GetExtraData(const std::string& key,
198 base::string16* data) const = 0; 192 base::string16* data) const = 0;
199 // Removes the data at the specified |key|. 193 // Removes the data at the specified |key|.
200 virtual void ClearExtraData(const std::string& key) = 0; 194 virtual void ClearExtraData(const std::string& key) = 0;
201 195
(...skipping 12 matching lines...) Expand all
214 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; 208 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0;
215 virtual const std::vector<GURL>& GetRedirectChain() const = 0; 209 virtual const std::vector<GURL>& GetRedirectChain() const = 0;
216 210
217 // True if this entry is restored and hasn't been loaded. 211 // True if this entry is restored and hasn't been loaded.
218 virtual bool IsRestored() const = 0; 212 virtual bool IsRestored() const = 0;
219 }; 213 };
220 214
221 } // namespace content 215 } // namespace content
222 216
223 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 217 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698