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