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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 namespace content { | 134 namespace content { |
135 class BrowserPluginManager; | 135 class BrowserPluginManager; |
136 class DeviceOrientationDispatcher; | 136 class DeviceOrientationDispatcher; |
137 class DevToolsAgent; | 137 class DevToolsAgent; |
138 class DocumentState; | 138 class DocumentState; |
139 class ExternalPopupMenu; | 139 class ExternalPopupMenu; |
140 class FaviconHelper; | 140 class FaviconHelper; |
141 class GeolocationDispatcher; | 141 class GeolocationDispatcher; |
142 class HistoryController; | 142 class HistoryController; |
| 143 class HistoryEntry; |
143 class ImageResourceFetcher; | 144 class ImageResourceFetcher; |
144 class InputTagSpeechDispatcher; | 145 class InputTagSpeechDispatcher; |
145 class LoadProgressTracker; | 146 class LoadProgressTracker; |
146 class MidiDispatcher; | 147 class MidiDispatcher; |
147 class MediaStreamClient; | 148 class MediaStreamClient; |
148 class MediaStreamDispatcher; | 149 class MediaStreamDispatcher; |
149 class MouseLockDispatcher; | 150 class MouseLockDispatcher; |
150 class NavigationState; | 151 class NavigationState; |
151 class PepperPluginInstanceImpl; | 152 class PepperPluginInstanceImpl; |
152 class PushMessagingDispatcher; | 153 class PushMessagingDispatcher; |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 static Referrer GetReferrerFromRequest( | 711 static Referrer GetReferrerFromRequest( |
711 blink::WebFrame* frame, | 712 blink::WebFrame* frame, |
712 const blink::WebURLRequest& request); | 713 const blink::WebURLRequest& request); |
713 | 714 |
714 static WindowOpenDisposition NavigationPolicyToDisposition( | 715 static WindowOpenDisposition NavigationPolicyToDisposition( |
715 blink::WebNavigationPolicy policy); | 716 blink::WebNavigationPolicy policy); |
716 | 717 |
717 void UpdateTitle(blink::WebFrame* frame, const base::string16& title, | 718 void UpdateTitle(blink::WebFrame* frame, const base::string16& title, |
718 blink::WebTextDirection title_direction); | 719 blink::WebTextDirection title_direction); |
719 void UpdateSessionHistory(blink::WebFrame* frame); | 720 void UpdateSessionHistory(blink::WebFrame* frame); |
720 void SendUpdateState(const blink::WebHistoryItem& item); | 721 void SendUpdateState(HistoryEntry* entry); |
721 | 722 |
722 // Update current main frame's encoding and send it to browser window. | 723 // Update current main frame's encoding and send it to browser window. |
723 // Since we want to let users see the right encoding info from menu | 724 // Since we want to let users see the right encoding info from menu |
724 // before finishing loading, we call the UpdateEncoding in | 725 // before finishing loading, we call the UpdateEncoding in |
725 // a) function:DidCommitLoadForFrame. When this function is called, | 726 // a) function:DidCommitLoadForFrame. When this function is called, |
726 // that means we have got first data. In here we try to get encoding | 727 // that means we have got first data. In here we try to get encoding |
727 // of page if it has been specified in http header. | 728 // of page if it has been specified in http header. |
728 // b) function:DidReceiveTitle. When this function is called, | 729 // b) function:DidReceiveTitle. When this function is called, |
729 // that means we have got specified title. Because in most of webpages, | 730 // that means we have got specified title. Because in most of webpages, |
730 // title tags will follow meta tags. In here we try to get encoding of | 731 // title tags will follow meta tags. In here we try to get encoding of |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 // use the Observer interface to filter IPC messages and receive frame change | 1310 // use the Observer interface to filter IPC messages and receive frame change |
1310 // notifications. | 1311 // notifications. |
1311 // --------------------------------------------------------------------------- | 1312 // --------------------------------------------------------------------------- |
1312 | 1313 |
1313 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1314 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1314 }; | 1315 }; |
1315 | 1316 |
1316 } // namespace content | 1317 } // namespace content |
1317 | 1318 |
1318 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1319 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |