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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // TODO(creis): We should run the beforeunload handler for every frame that | 423 // TODO(creis): We should run the beforeunload handler for every frame that |
424 // has one. | 424 // has one. |
425 virtual void DispatchBeforeUnload() = 0; | 425 virtual void DispatchBeforeUnload() = 0; |
426 | 426 |
427 // Attaches this inner WebContents to its container frame | 427 // Attaches this inner WebContents to its container frame |
428 // |outer_contents_frame| in |outer_web_contents|. | 428 // |outer_contents_frame| in |outer_web_contents|. |
429 virtual void AttachToOuterWebContentsFrame( | 429 virtual void AttachToOuterWebContentsFrame( |
430 WebContents* outer_web_contents, | 430 WebContents* outer_web_contents, |
431 RenderFrameHost* outer_contents_frame) = 0; | 431 RenderFrameHost* outer_contents_frame) = 0; |
432 | 432 |
433 // Invoked when visible security state changes. | |
434 virtual void DidChangeVisibleSecurityState() = 0; | |
435 | |
436 // Commands ------------------------------------------------------------------ | 433 // Commands ------------------------------------------------------------------ |
437 | 434 |
438 // Stop any pending navigation. | 435 // Stop any pending navigation. |
439 virtual void Stop() = 0; | 436 virtual void Stop() = 0; |
440 | 437 |
441 // Creates a new WebContents with the same state as this one. The returned | 438 // Creates a new WebContents with the same state as this one. The returned |
442 // heap-allocated pointer is owned by the caller. | 439 // heap-allocated pointer is owned by the caller. |
443 virtual WebContents* Clone() = 0; | 440 virtual WebContents* Clone() = 0; |
444 | 441 |
445 // Reloads the focused frame. | 442 // Reloads the focused frame. |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 | 761 |
765 private: | 762 private: |
766 // This interface should only be implemented inside content. | 763 // This interface should only be implemented inside content. |
767 friend class WebContentsImpl; | 764 friend class WebContentsImpl; |
768 WebContents() {} | 765 WebContents() {} |
769 }; | 766 }; |
770 | 767 |
771 } // namespace content | 768 } // namespace content |
772 | 769 |
773 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 770 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |