| 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/referrer.h" | 30 #include "content/public/common/referrer.h" |
| 31 #include "content/public/common/renderer_preferences.h" | 31 #include "content/public/common/renderer_preferences.h" |
| 32 #include "content/public/common/stop_find_action.h" | 32 #include "content/public/common/stop_find_action.h" |
| 33 #include "content/public/renderer/render_view.h" | 33 #include "content/public/renderer/render_view.h" |
| 34 #include "content/renderer/pepper_plugin_delegate_impl.h" | 34 #include "content/renderer/pepper_plugin_delegate_impl.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/WebConsoleMessage.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 const string16& frame_name, | 713 const string16& frame_name, |
| 713 int32 next_page_id); | 714 int32 next_page_id); |
| 714 | 715 |
| 715 // Do not delete directly. This class is reference counted. | 716 // Do not delete directly. This class is reference counted. |
| 716 virtual ~RenderViewImpl(); | 717 virtual ~RenderViewImpl(); |
| 717 | 718 |
| 718 void UpdateURL(WebKit::WebFrame* frame); | 719 void UpdateURL(WebKit::WebFrame* frame); |
| 719 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 720 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
| 720 WebKit::WebTextDirection title_direction); | 721 WebKit::WebTextDirection title_direction); |
| 721 void UpdateSessionHistory(WebKit::WebFrame* frame); | 722 void UpdateSessionHistory(WebKit::WebFrame* frame); |
| 723 void SendUpdateState(const WebKit::WebHistoryItem& item); |
| 722 | 724 |
| 723 // Update current main frame's encoding and send it to browser window. | 725 // Update current main frame's encoding and send it to browser window. |
| 724 // Since we want to let users see the right encoding info from menu | 726 // Since we want to let users see the right encoding info from menu |
| 725 // before finishing loading, we call the UpdateEncoding in | 727 // before finishing loading, we call the UpdateEncoding in |
| 726 // a) function:DidCommitLoadForFrame. When this function is called, | 728 // a) function:DidCommitLoadForFrame. When this function is called, |
| 727 // that means we have got first data. In here we try to get encoding | 729 // that means we have got first data. In here we try to get encoding |
| 728 // of page if it has been specified in http header. | 730 // of page if it has been specified in http header. |
| 729 // b) function:DidReceiveTitle. When this function is called, | 731 // b) function:DidReceiveTitle. When this function is called, |
| 730 // that means we have got specified title. Because in most of webpages, | 732 // that means we have got specified title. Because in most of webpages, |
| 731 // title tags will follow meta tags. In here we try to get encoding of | 733 // title tags will follow meta tags. In here we try to get encoding of |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 // bunch of stuff, you should probably create a helper class and put your | 1267 // bunch of stuff, you should probably create a helper class and put your |
| 1266 // data and methods on that to avoid bloating RenderView more. You can | 1268 // data and methods on that to avoid bloating RenderView more. You can |
| 1267 // use the Observer interface to filter IPC messages and receive frame change | 1269 // use the Observer interface to filter IPC messages and receive frame change |
| 1268 // notifications. | 1270 // notifications. |
| 1269 // --------------------------------------------------------------------------- | 1271 // --------------------------------------------------------------------------- |
| 1270 | 1272 |
| 1271 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1273 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1272 }; | 1274 }; |
| 1273 | 1275 |
| 1274 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1276 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |