OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 // separately so that the ScopedPageLoadDeferrers of any current dialogs are | 547 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
548 // no longer on the stack when we attempt to swap it out. | 548 // no longer on the stack when we attempt to swap it out. |
549 void SuppressFurtherDialogs(); | 549 void SuppressFurtherDialogs(); |
550 | 550 |
551 // PlzNavigate: returns the LoFi state of the last successful navigation that | 551 // PlzNavigate: returns the LoFi state of the last successful navigation that |
552 // made a network request. | 552 // made a network request. |
553 LoFiState last_navigation_lofi_state() const { | 553 LoFiState last_navigation_lofi_state() const { |
554 return last_navigation_lofi_state_; | 554 return last_navigation_lofi_state_; |
555 } | 555 } |
556 | 556 |
| 557 void AddSecurityMessageToConsole(ConsoleMessageLevel level, |
| 558 const std::string& message); |
| 559 |
557 protected: | 560 protected: |
558 friend class RenderFrameHostFactory; | 561 friend class RenderFrameHostFactory; |
559 | 562 |
560 // |flags| is a combination of CreateRenderFrameFlags. | 563 // |flags| is a combination of CreateRenderFrameFlags. |
561 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 564 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
562 // should be the abstraction needed here, but we need RenderViewHost to pass | 565 // should be the abstraction needed here, but we need RenderViewHost to pass |
563 // into WebContentsObserver::FrameDetached for now. | 566 // into WebContentsObserver::FrameDetached for now. |
564 RenderFrameHostImpl(SiteInstance* site_instance, | 567 RenderFrameHostImpl(SiteInstance* site_instance, |
565 RenderViewHostImpl* render_view_host, | 568 RenderViewHostImpl* render_view_host, |
566 RenderFrameHostDelegate* delegate, | 569 RenderFrameHostDelegate* delegate, |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 | 969 |
967 // NOTE: This must be the last member. | 970 // NOTE: This must be the last member. |
968 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 971 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
969 | 972 |
970 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 973 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
971 }; | 974 }; |
972 | 975 |
973 } // namespace content | 976 } // namespace content |
974 | 977 |
975 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 978 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |