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