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

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

Issue 11092005: Ifdef out the parts of navigation_controller.h that are not supported on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | 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_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // Removing of entries ------------------------------------------------------- 308 // Removing of entries -------------------------------------------------------
309 309
310 // Removes the entry at the specified |index|. This call dicards any pending 310 // Removes the entry at the specified |index|. This call dicards any pending
311 // and transient entries. If the index is the last committed index, this does 311 // and transient entries. If the index is the last committed index, this does
312 // nothing and returns false. 312 // nothing and returns false.
313 virtual void RemoveEntryAtIndex(int index) = 0; 313 virtual void RemoveEntryAtIndex(int index) = 0;
314 314
315 // Random -------------------------------------------------------------------- 315 // Random --------------------------------------------------------------------
316 316
317 // Session storage depends on dom_storage that depends on WebKit::WebString,
318 // which cannot be used on iOS.
319 #if !defined(OS_IOS)
317 // Returns all the SessionStorageNamespace objects that this 320 // Returns all the SessionStorageNamespace objects that this
318 // NavigationController knows about. 321 // NavigationController knows about.
319 virtual const SessionStorageNamespaceMap& 322 virtual const SessionStorageNamespaceMap&
320 GetSessionStorageNamespaceMap() const = 0; 323 GetSessionStorageNamespaceMap() const = 0;
321 324
322 // TODO(ajwong): Remove this once prerendering, instant, and session restore 325 // TODO(ajwong): Remove this once prerendering, instant, and session restore
323 // are migrated. 326 // are migrated.
324 virtual SessionStorageNamespace* GetDefaultSessionStorageNamespace() = 0; 327 virtual SessionStorageNamespace* GetDefaultSessionStorageNamespace() = 0;
328 #endif
325 329
326 // Sets the max restored page ID this NavigationController has seen, if it 330 // Sets the max restored page ID this NavigationController has seen, if it
327 // was restored from a previous session. 331 // was restored from a previous session.
328 virtual void SetMaxRestoredPageID(int32 max_id) = 0; 332 virtual void SetMaxRestoredPageID(int32 max_id) = 0;
329 333
330 // Returns the largest restored page ID seen in this navigation controller, 334 // Returns the largest restored page ID seen in this navigation controller,
331 // if it was restored from a previous session. (-1 otherwise) 335 // if it was restored from a previous session. (-1 otherwise)
332 virtual int32 GetMaxRestoredPageID() const = 0; 336 virtual int32 GetMaxRestoredPageID() const = 0;
333 337
334 // Returns true if a reload happens when activated (SetActive(true) is 338 // Returns true if a reload happens when activated (SetActive(true) is
(...skipping 29 matching lines...) Expand all
364 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; 368 virtual void CopyStateFromAndPrune(NavigationController* source) = 0;
365 369
366 // Removes all the entries except the active entry. If there is a new pending 370 // Removes all the entries except the active entry. If there is a new pending
367 // navigation it is preserved. 371 // navigation it is preserved.
368 virtual void PruneAllButActive() = 0; 372 virtual void PruneAllButActive() = 0;
369 }; 373 };
370 374
371 } // namespace content 375 } // namespace content
372 376
373 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 377 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698