| OLD | NEW | 
|---|
| 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 <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <string> | 10 #include <string> | 
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 111   // level frame. | 111   // level frame. | 
| 112   virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 112   virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 
| 113 | 113 | 
| 114   // The state for the page changed and should be updated in session history. | 114   // The state for the page changed and should be updated in session history. | 
| 115   virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, | 115   virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, | 
| 116                                    const PageState& page_state) {} | 116                                    const PageState& page_state) {} | 
| 117 | 117 | 
| 118   // The page's title was changed and should be updated. Only called for the | 118   // The page's title was changed and should be updated. Only called for the | 
| 119   // top-level frame. | 119   // top-level frame. | 
| 120   virtual void UpdateTitle(RenderFrameHost* render_frame_host, | 120   virtual void UpdateTitle(RenderFrameHost* render_frame_host, | 
| 121                            int32_t page_id, |  | 
| 122                            const base::string16& title, | 121                            const base::string16& title, | 
| 123                            base::i18n::TextDirection title_direction) {} | 122                            base::i18n::TextDirection title_direction) {} | 
| 124 | 123 | 
| 125   // The page's encoding was changed and should be updated. Only called for the | 124   // The page's encoding was changed and should be updated. Only called for the | 
| 126   // top-level frame. | 125   // top-level frame. | 
| 127   virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 126   virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 
| 128                               const std::string& encoding) {} | 127                               const std::string& encoding) {} | 
| 129 | 128 | 
| 130   // Return this object cast to a WebContents, if it is one. If the object is | 129   // Return this object cast to a WebContents, if it is one. If the object is | 
| 131   // not a WebContents, returns NULL. | 130   // not a WebContents, returns NULL. | 
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 209   virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 208   virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 
| 210       const GURL& url); | 209       const GURL& url); | 
| 211 | 210 | 
| 212  protected: | 211  protected: | 
| 213   virtual ~RenderFrameHostDelegate() {} | 212   virtual ~RenderFrameHostDelegate() {} | 
| 214 }; | 213 }; | 
| 215 | 214 | 
| 216 }  // namespace content | 215 }  // namespace content | 
| 217 | 216 | 
| 218 #endif  // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 217 #endif  // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 
| OLD | NEW | 
|---|