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 |
433 // Commands ------------------------------------------------------------------ | 436 // Commands ------------------------------------------------------------------ |
434 | 437 |
435 // Stop any pending navigation. | 438 // Stop any pending navigation. |
436 virtual void Stop() = 0; | 439 virtual void Stop() = 0; |
437 | 440 |
438 // Creates a new WebContents with the same state as this one. The returned | 441 // Creates a new WebContents with the same state as this one. The returned |
439 // heap-allocated pointer is owned by the caller. | 442 // heap-allocated pointer is owned by the caller. |
440 virtual WebContents* Clone() = 0; | 443 virtual WebContents* Clone() = 0; |
441 | 444 |
442 // Reloads the focused frame. | 445 // Reloads the focused frame. |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 | 764 |
762 private: | 765 private: |
763 // This interface should only be implemented inside content. | 766 // This interface should only be implemented inside content. |
764 friend class WebContentsImpl; | 767 friend class WebContentsImpl; |
765 WebContents() {} | 768 WebContents() {} |
766 }; | 769 }; |
767 | 770 |
768 } // namespace content | 771 } // namespace content |
769 | 772 |
770 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 773 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |