| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 JavaScriptMessageType type, | 336 JavaScriptMessageType type, |
| 337 IPC::Message* reply_msg) OVERRIDE; | 337 IPC::Message* reply_msg) OVERRIDE; |
| 338 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, | 338 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, |
| 339 const base::string16& message, | 339 const base::string16& message, |
| 340 bool is_reload, | 340 bool is_reload, |
| 341 IPC::Message* reply_msg) OVERRIDE; | 341 IPC::Message* reply_msg) OVERRIDE; |
| 342 virtual void DidAccessInitialDocument() OVERRIDE; | 342 virtual void DidAccessInitialDocument() OVERRIDE; |
| 343 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) OVERRIDE; | 343 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) OVERRIDE; |
| 344 virtual void DocumentOnLoadCompleted( | 344 virtual void DocumentOnLoadCompleted( |
| 345 RenderFrameHost* render_frame_host) OVERRIDE; | 345 RenderFrameHost* render_frame_host) OVERRIDE; |
| 346 virtual void UpdateTitle(RenderFrameHost* render_frame_host, |
| 347 int32 page_id, |
| 348 const base::string16& title, |
| 349 base::i18n::TextDirection title_direction) OVERRIDE; |
| 350 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, |
| 351 const std::string& encoding) OVERRIDE; |
| 346 virtual WebContents* GetAsWebContents() OVERRIDE; | 352 virtual WebContents* GetAsWebContents() OVERRIDE; |
| 347 virtual bool IsNeverVisible() OVERRIDE; | 353 virtual bool IsNeverVisible() OVERRIDE; |
| 348 | 354 |
| 349 // RenderViewHostDelegate ---------------------------------------------------- | 355 // RenderViewHostDelegate ---------------------------------------------------- |
| 350 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; | 356 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; |
| 351 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 357 virtual bool OnMessageReceived(RenderViewHost* render_view_host, |
| 352 const IPC::Message& message) OVERRIDE; | 358 const IPC::Message& message) OVERRIDE; |
| 353 // RenderFrameHostDelegate has the same method, so list it there because this | 359 // RenderFrameHostDelegate has the same method, so list it there because this |
| 354 // interface is going away. | 360 // interface is going away. |
| 355 // virtual WebContents* GetAsWebContents() OVERRIDE; | 361 // virtual WebContents* GetAsWebContents() OVERRIDE; |
| 356 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 362 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
| 357 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 363 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 358 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; | 364 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
| 359 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 365 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
| 360 base::TerminationStatus status, | 366 base::TerminationStatus status, |
| 361 int error_code) OVERRIDE; | 367 int error_code) OVERRIDE; |
| 362 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; | 368 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; |
| 363 virtual void UpdateState(RenderViewHost* render_view_host, | 369 virtual void UpdateState(RenderViewHost* render_view_host, |
| 364 int32 page_id, | 370 int32 page_id, |
| 365 const PageState& page_state) OVERRIDE; | 371 const PageState& page_state) OVERRIDE; |
| 366 virtual void UpdateTitle(RenderViewHost* render_view_host, | |
| 367 int32 page_id, | |
| 368 const base::string16& title, | |
| 369 base::i18n::TextDirection title_direction) OVERRIDE; | |
| 370 virtual void UpdateEncoding(RenderViewHost* render_view_host, | |
| 371 const std::string& encoding) OVERRIDE; | |
| 372 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; | 372 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; |
| 373 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; | 373 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; |
| 374 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; | 374 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; |
| 375 virtual void DidCancelLoading() OVERRIDE; | 375 virtual void DidCancelLoading() OVERRIDE; |
| 376 virtual void DidChangeLoadProgress(double progress) OVERRIDE; | 376 virtual void DidChangeLoadProgress(double progress) OVERRIDE; |
| 377 virtual void DocumentAvailableInMainFrame( | 377 virtual void DocumentAvailableInMainFrame( |
| 378 RenderViewHost* render_view_host) OVERRIDE; | 378 RenderViewHost* render_view_host) OVERRIDE; |
| 379 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; | 379 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; |
| 380 virtual void RouteMessageEvent( | 380 virtual void RouteMessageEvent( |
| 381 RenderViewHost* rvh, | 381 RenderViewHost* rvh, |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 | 946 |
| 947 // Data for current page ----------------------------------------------------- | 947 // Data for current page ----------------------------------------------------- |
| 948 | 948 |
| 949 // When a title cannot be taken from any entry, this title will be used. | 949 // When a title cannot be taken from any entry, this title will be used. |
| 950 base::string16 page_title_when_no_navigation_entry_; | 950 base::string16 page_title_when_no_navigation_entry_; |
| 951 | 951 |
| 952 // When a navigation occurs, we record its contents MIME type. It can be | 952 // When a navigation occurs, we record its contents MIME type. It can be |
| 953 // used to check whether we can do something for some special contents. | 953 // used to check whether we can do something for some special contents. |
| 954 std::string contents_mime_type_; | 954 std::string contents_mime_type_; |
| 955 | 955 |
| 956 // Character encoding. | 956 // The last reported character encoding, not canonicalized. |
| 957 std::string encoding_; | 957 std::string last_reported_encoding_; |
| 958 |
| 959 // The canonicalized character encoding. |
| 960 std::string canonical_encoding_; |
| 958 | 961 |
| 959 // True if this is a secure page which displayed insecure content. | 962 // True if this is a secure page which displayed insecure content. |
| 960 bool displayed_insecure_content_; | 963 bool displayed_insecure_content_; |
| 961 | 964 |
| 962 // Whether the initial empty page has been accessed by another page, making it | 965 // Whether the initial empty page has been accessed by another page, making it |
| 963 // unsafe to show the pending URL. Usually false unless another window tries | 966 // unsafe to show the pending URL. Usually false unless another window tries |
| 964 // to modify the blank page. Always false after the first commit. | 967 // to modify the blank page. Always false after the first commit. |
| 965 bool has_accessed_initial_document_; | 968 bool has_accessed_initial_document_; |
| 966 | 969 |
| 967 // Data for misc internal state ---------------------------------------------- | 970 // Data for misc internal state ---------------------------------------------- |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 | 1091 |
| 1089 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1092 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1090 bool last_dialog_suppressed_; | 1093 bool last_dialog_suppressed_; |
| 1091 | 1094 |
| 1092 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1095 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1093 }; | 1096 }; |
| 1094 | 1097 |
| 1095 } // namespace content | 1098 } // namespace content |
| 1096 | 1099 |
| 1097 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1100 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |