Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 274883002: Move didReceiveTitle and related stuff to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 JavaScriptMessageType type, 343 JavaScriptMessageType type,
344 IPC::Message* reply_msg) OVERRIDE; 344 IPC::Message* reply_msg) OVERRIDE;
345 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 345 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
346 const base::string16& message, 346 const base::string16& message,
347 bool is_reload, 347 bool is_reload,
348 IPC::Message* reply_msg) OVERRIDE; 348 IPC::Message* reply_msg) OVERRIDE;
349 virtual void DidAccessInitialDocument() OVERRIDE; 349 virtual void DidAccessInitialDocument() OVERRIDE;
350 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) OVERRIDE; 350 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) OVERRIDE;
351 virtual void DocumentOnLoadCompleted( 351 virtual void DocumentOnLoadCompleted(
352 RenderFrameHost* render_frame_host) OVERRIDE; 352 RenderFrameHost* render_frame_host) OVERRIDE;
353 virtual void UpdateTitle(RenderFrameHost* render_frame_host,
354 int32 page_id,
355 const base::string16& title,
356 base::i18n::TextDirection title_direction) OVERRIDE;
357 virtual void UpdateEncoding(RenderFrameHost* render_frame_host,
358 const std::string& encoding) OVERRIDE;
353 virtual WebContents* GetAsWebContents() OVERRIDE; 359 virtual WebContents* GetAsWebContents() OVERRIDE;
354 virtual bool IsNeverVisible() OVERRIDE; 360 virtual bool IsNeverVisible() OVERRIDE;
355 361
356 // RenderViewHostDelegate ---------------------------------------------------- 362 // RenderViewHostDelegate ----------------------------------------------------
357 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE; 363 virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
358 virtual bool OnMessageReceived(RenderViewHost* render_view_host, 364 virtual bool OnMessageReceived(RenderViewHost* render_view_host,
359 const IPC::Message& message) OVERRIDE; 365 const IPC::Message& message) OVERRIDE;
360 // RenderFrameHostDelegate has the same method, so list it there because this 366 // RenderFrameHostDelegate has the same method, so list it there because this
361 // interface is going away. 367 // interface is going away.
362 // virtual WebContents* GetAsWebContents() OVERRIDE; 368 // virtual WebContents* GetAsWebContents() OVERRIDE;
363 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 369 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
364 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 370 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
365 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 371 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
366 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 372 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
367 base::TerminationStatus status, 373 base::TerminationStatus status,
368 int error_code) OVERRIDE; 374 int error_code) OVERRIDE;
369 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; 375 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE;
370 virtual void UpdateState(RenderViewHost* render_view_host, 376 virtual void UpdateState(RenderViewHost* render_view_host,
371 int32 page_id, 377 int32 page_id,
372 const PageState& page_state) OVERRIDE; 378 const PageState& page_state) OVERRIDE;
373 virtual void UpdateTitle(RenderViewHost* render_view_host,
374 int32 page_id,
375 const base::string16& title,
376 base::i18n::TextDirection title_direction) OVERRIDE;
377 virtual void UpdateEncoding(RenderViewHost* render_view_host,
378 const std::string& encoding) OVERRIDE;
379 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; 379 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE;
380 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; 380 virtual void Close(RenderViewHost* render_view_host) OVERRIDE;
381 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; 381 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE;
382 virtual void DidCancelLoading() OVERRIDE; 382 virtual void DidCancelLoading() OVERRIDE;
383 virtual void DidChangeLoadProgress(double progress) OVERRIDE; 383 virtual void DidChangeLoadProgress(double progress) OVERRIDE;
384 virtual void DocumentAvailableInMainFrame( 384 virtual void DocumentAvailableInMainFrame(
385 RenderViewHost* render_view_host) OVERRIDE; 385 RenderViewHost* render_view_host) OVERRIDE;
386 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE; 386 virtual void RouteCloseEvent(RenderViewHost* rvh) OVERRIDE;
387 virtual void RouteMessageEvent( 387 virtual void RouteMessageEvent(
388 RenderViewHost* rvh, 388 RenderViewHost* rvh,
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 // Data for current page ----------------------------------------------------- 954 // Data for current page -----------------------------------------------------
955 955
956 // When a title cannot be taken from any entry, this title will be used. 956 // When a title cannot be taken from any entry, this title will be used.
957 base::string16 page_title_when_no_navigation_entry_; 957 base::string16 page_title_when_no_navigation_entry_;
958 958
959 // When a navigation occurs, we record its contents MIME type. It can be 959 // When a navigation occurs, we record its contents MIME type. It can be
960 // used to check whether we can do something for some special contents. 960 // used to check whether we can do something for some special contents.
961 std::string contents_mime_type_; 961 std::string contents_mime_type_;
962 962
963 // Character encoding. 963 // The last reported character encoding, not canonicalized.
964 std::string encoding_; 964 std::string last_reported_encoding_;
965
966 // The canonicalized character encoding.
967 std::string canonical_encoding_;
965 968
966 // True if this is a secure page which displayed insecure content. 969 // True if this is a secure page which displayed insecure content.
967 bool displayed_insecure_content_; 970 bool displayed_insecure_content_;
968 971
969 // Whether the initial empty page has been accessed by another page, making it 972 // Whether the initial empty page has been accessed by another page, making it
970 // unsafe to show the pending URL. Usually false unless another window tries 973 // unsafe to show the pending URL. Usually false unless another window tries
971 // to modify the blank page. Always false after the first commit. 974 // to modify the blank page. Always false after the first commit.
972 bool has_accessed_initial_document_; 975 bool has_accessed_initial_document_;
973 976
974 // Data for misc internal state ---------------------------------------------- 977 // Data for misc internal state ----------------------------------------------
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 1098
1096 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1099 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1097 bool last_dialog_suppressed_; 1100 bool last_dialog_suppressed_;
1098 1101
1099 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1102 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1100 }; 1103 };
1101 1104
1102 } // namespace content 1105 } // namespace content
1103 1106
1104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698