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

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

Issue 14362028: Speculative Revert 195108 "Changes to closing contents with beforeunload/unl..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/content/browser/web_contents/web_contents_impl.cc ('k') | 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_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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 virtual base::TimeTicks GetNewTabStartTime() const = 0; 336 virtual base::TimeTicks GetNewTabStartTime() const = 0;
337 337
338 // Tells the tab to close now. The tab will take care not to close until it's 338 // Tells the tab to close now. The tab will take care not to close until it's
339 // out of nested message loops. 339 // out of nested message loops.
340 virtual void Close() = 0; 340 virtual void Close() = 0;
341 341
342 // Notification that tab closing has started. This can be called multiple 342 // Notification that tab closing has started. This can be called multiple
343 // times, subsequent calls are ignored. 343 // times, subsequent calls are ignored.
344 virtual void OnCloseStarted() = 0; 344 virtual void OnCloseStarted() = 0;
345 345
346 // Notification that tab closing was cancelled. This can happen when a user
347 // cancels a window close via another tab's beforeunload dialog.
348 virtual void OnCloseCanceled() = 0;
349
350 // Set the time during close when unload is started. Normally, this is set
351 // after the beforeunload dialog. However, for a window close, it is set
352 // after all the beforeunload dialogs have finished.
353 virtual void OnUnloadStarted() = 0;
354
355 // Set the time during close when the tab is no longer visible.
356 virtual void OnUnloadDetachedStarted() = 0;
357
358 // A render view-originated drag has ended. Informs the render view host and 346 // A render view-originated drag has ended. Informs the render view host and
359 // WebContentsDelegate. 347 // WebContentsDelegate.
360 virtual void SystemDragEnded() = 0; 348 virtual void SystemDragEnded() = 0;
361 349
362 // Notification the user has made a gesture while focus was on the 350 // Notification the user has made a gesture while focus was on the
363 // page. This is used to avoid uninitiated user downloads (aka carpet 351 // page. This is used to avoid uninitiated user downloads (aka carpet
364 // bombing), see DownloadRequestLimiter for details. 352 // bombing), see DownloadRequestLimiter for details.
365 virtual void UserGestureDone() = 0; 353 virtual void UserGestureDone() = 0;
366 354
367 // Indicates if this tab was explicitly closed by the user (control-w, close 355 // Indicates if this tab was explicitly closed by the user (control-w, close
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 422
435 private: 423 private:
436 // This interface should only be implemented inside content. 424 // This interface should only be implemented inside content.
437 friend class WebContentsImpl; 425 friend class WebContentsImpl;
438 WebContents() {} 426 WebContents() {}
439 }; 427 };
440 428
441 } // namespace content 429 } // namespace content
442 430
443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 431 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « trunk/src/content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698