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