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

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

Issue 138913021: Avoid discarding freshly created background tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (last_selected) Created 6 years, 10 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_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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 virtual base::TerminationStatus GetCrashedStatus() const = 0; 308 virtual base::TerminationStatus GetCrashedStatus() const = 0;
309 309
310 // Whether the tab is in the process of being destroyed. 310 // Whether the tab is in the process of being destroyed.
311 virtual bool IsBeingDestroyed() const = 0; 311 virtual bool IsBeingDestroyed() const = 0;
312 312
313 // Convenience method for notifying the delegate of a navigation state 313 // Convenience method for notifying the delegate of a navigation state
314 // change. See InvalidateType enum. 314 // change. See InvalidateType enum.
315 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; 315 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
316 316
317 // Get the last time that the WebContents was made visible with WasShown() 317 // Get the last time that the WebContents was made active (either when it was
318 virtual base::TimeTicks GetLastSelectedTime() const = 0; 318 // created or shown with WasShown()).
319 virtual base::TimeTicks GetLastActiveTime() const = 0;
319 320
320 // Invoked when the WebContents becomes shown/hidden. 321 // Invoked when the WebContents becomes shown/hidden.
321 virtual void WasShown() = 0; 322 virtual void WasShown() = 0;
322 virtual void WasHidden() = 0; 323 virtual void WasHidden() = 0;
323 324
324 // Returns true if the before unload and unload listeners need to be 325 // Returns true if the before unload and unload listeners need to be
325 // fired. The value of this changes over time. For example, if true and the 326 // fired. The value of this changes over time. For example, if true and the
326 // before unload listener is executed and allows the user to exit, then this 327 // before unload listener is executed and allows the user to exit, then this
327 // returns false. 328 // returns false.
328 virtual bool NeedToFireBeforeUnload() = 0; 329 virtual bool NeedToFireBeforeUnload() = 0;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 512
512 private: 513 private:
513 // This interface should only be implemented inside content. 514 // This interface should only be implemented inside content.
514 friend class WebContentsImpl; 515 friend class WebContentsImpl;
515 WebContents() {} 516 WebContents() {}
516 }; 517 };
517 518
518 } // namespace content 519 } // namespace content
519 520
520 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 521 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/shell/browser/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698