OLD | NEW |
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 // SwapOut in RenderViewHost, which run the unload handler. | 377 // SwapOut in RenderViewHost, which run the unload handler. |
378 // | 378 // |
379 // |for_cross_site_transition| indicates whether this call is for the current | 379 // |for_cross_site_transition| indicates whether this call is for the current |
380 // frame during a cross-process navigation. False means we're closing the | 380 // frame during a cross-process navigation. False means we're closing the |
381 // entire tab. | 381 // entire tab. |
382 // | 382 // |
383 // TODO(creis): We should run the beforeunload handler for every frame that | 383 // TODO(creis): We should run the beforeunload handler for every frame that |
384 // has one. | 384 // has one. |
385 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; | 385 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; |
386 | 386 |
| 387 // Attaches this inner WebContents to its container frame |
| 388 // |outer_contents_frame| in |outer_web_contents|. |
| 389 virtual void AttachToOuterWebContentsFrame( |
| 390 WebContents* outer_web_contents, |
| 391 RenderFrameHost* outer_contents_frame) = 0; |
| 392 |
387 // Commands ------------------------------------------------------------------ | 393 // Commands ------------------------------------------------------------------ |
388 | 394 |
389 // Stop any pending navigation. | 395 // Stop any pending navigation. |
390 virtual void Stop() = 0; | 396 virtual void Stop() = 0; |
391 | 397 |
392 // Creates a new WebContents with the same state as this one. The returned | 398 // Creates a new WebContents with the same state as this one. The returned |
393 // heap-allocated pointer is owned by the caller. | 399 // heap-allocated pointer is owned by the caller. |
394 virtual WebContents* Clone() = 0; | 400 virtual WebContents* Clone() = 0; |
395 | 401 |
396 // Reloads the focused frame. | 402 // Reloads the focused frame. |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 | 673 |
668 private: | 674 private: |
669 // This interface should only be implemented inside content. | 675 // This interface should only be implemented inside content. |
670 friend class WebContentsImpl; | 676 friend class WebContentsImpl; |
671 WebContents() {} | 677 WebContents() {} |
672 }; | 678 }; |
673 | 679 |
674 } // namespace content | 680 } // namespace content |
675 | 681 |
676 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 682 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |