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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 }; | 597 }; |
598 | 598 |
599 typedef std::map<GURL, double> HostZoomLevels; | 599 typedef std::map<GURL, double> HostZoomLevels; |
600 | 600 |
601 // Functions to add and remove observers for this object. | 601 // Functions to add and remove observers for this object. |
602 void AddObserver(RenderFrameObserver* observer); | 602 void AddObserver(RenderFrameObserver* observer); |
603 void RemoveObserver(RenderFrameObserver* observer); | 603 void RemoveObserver(RenderFrameObserver* observer); |
604 | 604 |
605 // Builds and sends DidCommitProvisionalLoad to the host. | 605 // Builds and sends DidCommitProvisionalLoad to the host. |
606 void SendDidCommitProvisionalLoad(blink::WebFrame* frame, | 606 void SendDidCommitProvisionalLoad(blink::WebFrame* frame, |
607 blink::WebHistoryCommitType commit_type); | 607 blink::WebHistoryCommitType commit_type, |
| 608 const blink::WebHistoryItem& item); |
608 | 609 |
609 // IPC message handlers ------------------------------------------------------ | 610 // IPC message handlers ------------------------------------------------------ |
610 // | 611 // |
611 // The documentation for these functions should be in | 612 // The documentation for these functions should be in |
612 // content/common/*_messages.h for the message that the function is handling. | 613 // content/common/*_messages.h for the message that the function is handling. |
613 void OnBeforeUnload(); | 614 void OnBeforeUnload(); |
614 void OnSwapOut(int proxy_routing_id, | 615 void OnSwapOut(int proxy_routing_id, |
615 bool is_loading, | 616 bool is_loading, |
616 const FrameReplicationState& replicated_frame_state); | 617 const FrameReplicationState& replicated_frame_state); |
617 void OnStop(); | 618 void OnStop(); |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 #endif | 982 #endif |
982 | 983 |
983 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 984 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
984 | 985 |
985 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 986 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
986 }; | 987 }; |
987 | 988 |
988 } // namespace content | 989 } // namespace content |
989 | 990 |
990 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 991 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |