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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 274883002: Move didReceiveTitle and related stuff to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/i18n/rtl.h"
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 #include "content/public/common/javascript_message_type.h" 11 #include "content/public/common/javascript_message_type.h"
11 12
12 class GURL; 13 class GURL;
13 14
14 namespace IPC { 15 namespace IPC {
15 class Message; 16 class Message;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void DidAccessInitialDocument() {} 85 virtual void DidAccessInitialDocument() {}
85 86
86 // The frame set its opener to null, disowning it for the lifetime of the 87 // The frame set its opener to null, disowning it for the lifetime of the
87 // window. Only called for the top-level frame. 88 // window. Only called for the top-level frame.
88 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} 89 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {}
89 90
90 // The onload handler in the frame has completed. Only called for the top- 91 // The onload handler in the frame has completed. Only called for the top-
91 // level frame. 92 // level frame.
92 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} 93 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {}
93 94
95 // The page's title was changed and should be updated. Only called for the
96 // top-level frame.
97 virtual void UpdateTitle(RenderFrameHost* render_frame_host,
98 int32 page_id,
99 const base::string16& title,
100 base::i18n::TextDirection title_direction) {}
101
102 // The page's encoding was changed and should be updated. Only called for the
103 // top-level frame.
104 virtual void UpdateEncoding(RenderFrameHost* render_frame_host,
105 const std::string& encoding) {}
106
94 // Return this object cast to a WebContents, if it is one. If the object is 107 // Return this object cast to a WebContents, if it is one. If the object is
95 // not a WebContents, returns NULL. 108 // not a WebContents, returns NULL.
96 virtual WebContents* GetAsWebContents(); 109 virtual WebContents* GetAsWebContents();
97 110
98 protected: 111 protected:
99 virtual ~RenderFrameHostDelegate() {} 112 virtual ~RenderFrameHostDelegate() {}
100 }; 113 };
101 114
102 } // namespace content 115 } // namespace content
103 116
104 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 117 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698