| 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/public/common/javascript_message_type.h" | 16 #include "content/public/common/javascript_message_type.h" |
| 17 #include "content/public/common/media_stream_request.h" | 17 #include "content/public/common/media_stream_request.h" |
| 18 #include "content/public/common/page_transition_types.h" | 18 #include "content/public/common/page_transition_types.h" |
| 19 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
| 20 #include "third_party/WebKit/public/web/WebPopupType.h" | 20 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 21 #include "ui/base/window_open_disposition.h" | 21 #include "ui/base/window_open_disposition.h" |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 class SkBitmap; | 24 class SkBitmap; |
| 25 class WebKeyboardEvent; | 25 class WebKeyboardEvent; |
| 26 struct ViewHostMsg_CreateWindow_Params; | 26 struct ViewHostMsg_CreateWindow_Params; |
| 27 struct ViewHostMsg_FrameNavigate_Params; | 27 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 28 struct ViewMsg_PostMessage_Params; | 28 struct ViewMsg_PostMessage_Params; |
| 29 struct WebPreferences; | 29 struct WebPreferences; |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 class ListValue; | 32 class ListValue; |
| 33 class TimeTicks; | 33 class TimeTicks; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace IPC { | 36 namespace IPC { |
| 37 class Message; | 37 class Message; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // The RenderView died somehow (crashed or was killed by the user). | 141 // The RenderView died somehow (crashed or was killed by the user). |
| 142 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 142 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
| 143 base::TerminationStatus status, | 143 base::TerminationStatus status, |
| 144 int error_code) {} | 144 int error_code) {} |
| 145 | 145 |
| 146 // The RenderView is going to be deleted. This is called when each | 146 // The RenderView is going to be deleted. This is called when each |
| 147 // RenderView is going to be destroyed | 147 // RenderView is going to be destroyed |
| 148 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 148 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
| 149 | 149 |
| 150 // The RenderView was navigated to a different page. | 150 // The RenderView was navigated to a different page. |
| 151 virtual void DidNavigate(RenderViewHost* render_view_host, | 151 virtual void DidNavigate( |
| 152 const ViewHostMsg_FrameNavigate_Params& params) {} | 152 RenderViewHost* render_view_host, |
| 153 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} |
| 153 | 154 |
| 154 // The state for the page changed and should be updated. | 155 // The state for the page changed and should be updated. |
| 155 virtual void UpdateState(RenderViewHost* render_view_host, | 156 virtual void UpdateState(RenderViewHost* render_view_host, |
| 156 int32 page_id, | 157 int32 page_id, |
| 157 const PageState& state) {} | 158 const PageState& state) {} |
| 158 | 159 |
| 159 // The page's title was changed and should be updated. | 160 // The page's title was changed and should be updated. |
| 160 virtual void UpdateTitle(RenderViewHost* render_view_host, | 161 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 161 int32 page_id, | 162 int32 page_id, |
| 162 const base::string16& title, | 163 const base::string16& title, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // created by the RenderViewHost. | 413 // created by the RenderViewHost. |
| 413 virtual FrameTree* GetFrameTree(); | 414 virtual FrameTree* GetFrameTree(); |
| 414 | 415 |
| 415 protected: | 416 protected: |
| 416 virtual ~RenderViewHostDelegate() {} | 417 virtual ~RenderViewHostDelegate() {} |
| 417 }; | 418 }; |
| 418 | 419 |
| 419 } // namespace content | 420 } // namespace content |
| 420 | 421 |
| 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |