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

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

Issue 1131373003: [Session restore] Add MRU logic to loading of background pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary change in tab_restore_service.h Created 5 years, 7 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
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_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 virtual base::TerminationStatus GetCrashedStatus() const = 0; 345 virtual base::TerminationStatus GetCrashedStatus() const = 0;
346 346
347 // Whether the tab is in the process of being destroyed. 347 // Whether the tab is in the process of being destroyed.
348 virtual bool IsBeingDestroyed() const = 0; 348 virtual bool IsBeingDestroyed() const = 0;
349 349
350 // Convenience method for notifying the delegate of a navigation state 350 // Convenience method for notifying the delegate of a navigation state
351 // change. 351 // change.
352 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; 352 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0;
353 353
354 // Get the last time that the WebContents was made active (either when it was 354 // Get/Set the last time that the WebContent was made active (either when it
355 // created or shown with WasShown()). 355 // was created or shown with WasShown()). If the tab has been restored from a
jam 2015/05/18 15:31:37 undo this comment change. content doesn't know abo
Georges Khalil 2015/05/19 19:32:16 Done.
356 // previous session, this will return the last time it was made active in the
357 // previous session instead of the tab creation time.
356 virtual base::Time GetLastActiveTime() const = 0; 358 virtual base::Time GetLastActiveTime() const = 0;
359 virtual void SetLastActiveTime(base::Time last_active_time) = 0;
357 360
358 // Invoked when the WebContents becomes shown/hidden. 361 // Invoked when the WebContents becomes shown/hidden.
359 virtual void WasShown() = 0; 362 virtual void WasShown() = 0;
360 virtual void WasHidden() = 0; 363 virtual void WasHidden() = 0;
361 364
362 // Returns true if the before unload and unload listeners need to be 365 // Returns true if the before unload and unload listeners need to be
363 // fired. The value of this changes over time. For example, if true and the 366 // fired. The value of this changes over time. For example, if true and the
364 // before unload listener is executed and allows the user to exit, then this 367 // before unload listener is executed and allows the user to exit, then this
365 // returns false. 368 // returns false.
366 virtual bool NeedToFireBeforeUnload() = 0; 369 virtual bool NeedToFireBeforeUnload() = 0;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 662
660 private: 663 private:
661 // This interface should only be implemented inside content. 664 // This interface should only be implemented inside content.
662 friend class WebContentsImpl; 665 friend class WebContentsImpl;
663 WebContents() {} 666 WebContents() {}
664 }; 667 };
665 668
666 } // namespace content 669 } // namespace content
667 670
668 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 671 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698