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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "content/public/common/stop_find_action.h" | 30 #include "content/public/common/stop_find_action.h" |
31 #include "content/public/renderer/render_view.h" | 31 #include "content/public/renderer/render_view.h" |
32 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 32 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
33 #include "content/renderer/renderer_webcookiejar_impl.h" | 33 #include "content/renderer/renderer_webcookiejar_impl.h" |
34 #include "content/renderer/render_view_selection.h" | 34 #include "content/renderer/render_view_selection.h" |
35 #include "content/renderer/render_widget.h" | 35 #include "content/renderer/render_widget.h" |
36 #include "ipc/ipc_platform_file.h" | 36 #include "ipc/ipc_platform_file.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
48 #include "ui/base/javascript_message_type.h" | 49 #include "ui/base/javascript_message_type.h" |
49 #include "ui/gfx/surface/transport_dib.h" | 50 #include "ui/gfx/surface/transport_dib.h" |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 const WebKit::WebScreenInfo& screen_info, | 732 const WebKit::WebScreenInfo& screen_info, |
732 bool guest); | 733 bool guest); |
733 | 734 |
734 // Do not delete directly. This class is reference counted. | 735 // Do not delete directly. This class is reference counted. |
735 virtual ~RenderViewImpl(); | 736 virtual ~RenderViewImpl(); |
736 | 737 |
737 void UpdateURL(WebKit::WebFrame* frame); | 738 void UpdateURL(WebKit::WebFrame* frame); |
738 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 739 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
739 WebKit::WebTextDirection title_direction); | 740 WebKit::WebTextDirection title_direction); |
740 void UpdateSessionHistory(WebKit::WebFrame* frame); | 741 void UpdateSessionHistory(WebKit::WebFrame* frame); |
| 742 void SendUpdateState(const WebKit::WebHistoryItem& item); |
741 | 743 |
742 // Update current main frame's encoding and send it to browser window. | 744 // Update current main frame's encoding and send it to browser window. |
743 // Since we want to let users see the right encoding info from menu | 745 // Since we want to let users see the right encoding info from menu |
744 // before finishing loading, we call the UpdateEncoding in | 746 // before finishing loading, we call the UpdateEncoding in |
745 // a) function:DidCommitLoadForFrame. When this function is called, | 747 // a) function:DidCommitLoadForFrame. When this function is called, |
746 // that means we have got first data. In here we try to get encoding | 748 // that means we have got first data. In here we try to get encoding |
747 // of page if it has been specified in http header. | 749 // of page if it has been specified in http header. |
748 // b) function:DidReceiveTitle. When this function is called, | 750 // b) function:DidReceiveTitle. When this function is called, |
749 // that means we have got specified title. Because in most of webpages, | 751 // that means we have got specified title. Because in most of webpages, |
750 // title tags will follow meta tags. In here we try to get encoding of | 752 // title tags will follow meta tags. In here we try to get encoding of |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 // bunch of stuff, you should probably create a helper class and put your | 1312 // bunch of stuff, you should probably create a helper class and put your |
1311 // data and methods on that to avoid bloating RenderView more. You can | 1313 // data and methods on that to avoid bloating RenderView more. You can |
1312 // use the Observer interface to filter IPC messages and receive frame change | 1314 // use the Observer interface to filter IPC messages and receive frame change |
1313 // notifications. | 1315 // notifications. |
1314 // --------------------------------------------------------------------------- | 1316 // --------------------------------------------------------------------------- |
1315 | 1317 |
1316 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1318 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1317 }; | 1319 }; |
1318 | 1320 |
1319 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1321 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |