| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 const WebPreferences& webkit_prefs, | 677 const WebPreferences& webkit_prefs, |
| 678 SharedRenderViewCounter* counter, | 678 SharedRenderViewCounter* counter, |
| 679 int32 routing_id, | 679 int32 routing_id, |
| 680 int64 session_storage_namespace_id, | 680 int64 session_storage_namespace_id, |
| 681 const string16& frame_name); | 681 const string16& frame_name); |
| 682 | 682 |
| 683 // Do not delete directly. This class is reference counted. | 683 // Do not delete directly. This class is reference counted. |
| 684 virtual ~RenderView(); | 684 virtual ~RenderView(); |
| 685 | 685 |
| 686 void UpdateURL(WebKit::WebFrame* frame); | 686 void UpdateURL(WebKit::WebFrame* frame); |
| 687 void UpdateTitle(WebKit::WebFrame* frame, const string16& title); | 687 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
| 688 WebKit::WebTextDirection title_direction); |
| 688 void UpdateSessionHistory(WebKit::WebFrame* frame); | 689 void UpdateSessionHistory(WebKit::WebFrame* frame); |
| 689 | 690 |
| 690 // Update current main frame's encoding and send it to browser window. | 691 // Update current main frame's encoding and send it to browser window. |
| 691 // Since we want to let users see the right encoding info from menu | 692 // Since we want to let users see the right encoding info from menu |
| 692 // before finishing loading, we call the UpdateEncoding in | 693 // before finishing loading, we call the UpdateEncoding in |
| 693 // a) function:DidCommitLoadForFrame. When this function is called, | 694 // a) function:DidCommitLoadForFrame. When this function is called, |
| 694 // that means we have got first data. In here we try to get encoding | 695 // that means we have got first data. In here we try to get encoding |
| 695 // of page if it has been specified in http header. | 696 // of page if it has been specified in http header. |
| 696 // b) function:DidReceiveTitle. When this function is called, | 697 // b) function:DidReceiveTitle. When this function is called, |
| 697 // that means we have got specified title. Because in most of webpages, | 698 // that means we have got specified title. Because in most of webpages, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 // bunch of stuff, you should probably create a helper class and put your | 1188 // bunch of stuff, you should probably create a helper class and put your |
| 1188 // data and methods on that to avoid bloating RenderView more. You can use | 1189 // data and methods on that to avoid bloating RenderView more. You can use |
| 1189 // the Observer interface to filter IPC messages and receive frame change | 1190 // the Observer interface to filter IPC messages and receive frame change |
| 1190 // notifications. | 1191 // notifications. |
| 1191 // --------------------------------------------------------------------------- | 1192 // --------------------------------------------------------------------------- |
| 1192 | 1193 |
| 1193 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1194 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1194 }; | 1195 }; |
| 1195 | 1196 |
| 1196 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1197 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |