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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // SwapOut in RenderViewHost, which run the unload handler. | 360 // SwapOut in RenderViewHost, which run the unload handler. |
361 // | 361 // |
362 // |for_cross_site_transition| indicates whether this call is for the current | 362 // |for_cross_site_transition| indicates whether this call is for the current |
363 // frame during a cross-process navigation. False means we're closing the | 363 // frame during a cross-process navigation. False means we're closing the |
364 // entire tab. | 364 // entire tab. |
365 // | 365 // |
366 // TODO(creis): We should run the beforeunload handler for every frame that | 366 // TODO(creis): We should run the beforeunload handler for every frame that |
367 // has one. | 367 // has one. |
368 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; | 368 virtual void DispatchBeforeUnload(bool for_cross_site_transition) = 0; |
369 | 369 |
| 370 // Attaches or associates this guest WebContents to its embedder frame |
| 371 // |embedder_frame| in |embedder_web_contents|. |
| 372 virtual void AttachToEmbedderFrame(WebContents* embedder_web_contents, |
| 373 RenderFrameHost* embedder_frame) = 0; |
| 374 |
370 // Commands ------------------------------------------------------------------ | 375 // Commands ------------------------------------------------------------------ |
371 | 376 |
372 // Stop any pending navigation. | 377 // Stop any pending navigation. |
373 virtual void Stop() = 0; | 378 virtual void Stop() = 0; |
374 | 379 |
375 // Creates a new WebContents with the same state as this one. The returned | 380 // Creates a new WebContents with the same state as this one. The returned |
376 // heap-allocated pointer is owned by the caller. | 381 // heap-allocated pointer is owned by the caller. |
377 virtual WebContents* Clone() = 0; | 382 virtual WebContents* Clone() = 0; |
378 | 383 |
379 // Reloads the focused frame. | 384 // Reloads the focused frame. |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 655 |
651 private: | 656 private: |
652 // This interface should only be implemented inside content. | 657 // This interface should only be implemented inside content. |
653 friend class WebContentsImpl; | 658 friend class WebContentsImpl; |
654 WebContents() {} | 659 WebContents() {} |
655 }; | 660 }; |
656 | 661 |
657 } // namespace content | 662 } // namespace content |
658 | 663 |
659 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 664 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |