| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "chrome/common/native_web_keyboard_event.h" | 15 #include "chrome/common/native_web_keyboard_event.h" |
| 16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
| 17 #include "webkit/glue/feed.h" |
| 17 #include "webkit/glue/password_form.h" | 18 #include "webkit/glue/password_form.h" |
| 18 #include "webkit/glue/webpreferences.h" | 19 #include "webkit/glue/webpreferences.h" |
| 19 #include "webkit/glue/window_open_disposition.h" | 20 #include "webkit/glue/window_open_disposition.h" |
| 20 | 21 |
| 21 class AutofillForm; | 22 class AutofillForm; |
| 22 class NavigationEntry; | 23 class NavigationEntry; |
| 23 class Profile; | 24 class Profile; |
| 24 class RenderProcessHost; | 25 class RenderProcessHost; |
| 25 class RenderViewHost; | 26 class RenderViewHost; |
| 26 class SkBitmap; | 27 class SkBitmap; |
| 27 class WebContents; | 28 class WebContents; |
| 28 class WebKeyboardEvent; | 29 class WebKeyboardEvent; |
| 29 struct ThumbnailScore; | 30 struct ThumbnailScore; |
| 30 struct ContextMenuParams; | 31 struct ContextMenuParams; |
| 31 struct ViewHostMsg_DidPrintPage_Params; | 32 struct ViewHostMsg_DidPrintPage_Params; |
| 32 struct ViewHostMsg_FrameNavigate_Params; | 33 struct ViewHostMsg_FrameNavigate_Params; |
| 34 struct ViewHostMsg_UpdateFeedList_Params; |
| 33 struct WebDropData; | 35 struct WebDropData; |
| 34 | 36 |
| 35 namespace base { | 37 namespace base { |
| 36 class WaitableEvent; | 38 class WaitableEvent; |
| 37 } | 39 } |
| 38 | 40 |
| 39 namespace IPC { | 41 namespace IPC { |
| 40 class Message; | 42 class Message; |
| 41 } | 43 } |
| 42 | 44 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // The state for the page changed and should be updated. | 173 // The state for the page changed and should be updated. |
| 172 virtual void UpdateState(RenderViewHost* render_view_host, | 174 virtual void UpdateState(RenderViewHost* render_view_host, |
| 173 int32 page_id, | 175 int32 page_id, |
| 174 const std::string& state) { } | 176 const std::string& state) { } |
| 175 | 177 |
| 176 // The page's title was changed and should be updated. | 178 // The page's title was changed and should be updated. |
| 177 virtual void UpdateTitle(RenderViewHost* render_view_host, | 179 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 178 int32 page_id, | 180 int32 page_id, |
| 179 const std::wstring& title) { } | 181 const std::wstring& title) { } |
| 180 | 182 |
| 183 // The list of feeds have been updated. |
| 184 virtual void UpdateFeedList( |
| 185 RenderViewHost* render_view_host, |
| 186 const ViewHostMsg_UpdateFeedList_Params& params) { } |
| 187 |
| 181 // The page's encoding was changed and should be updated. | 188 // The page's encoding was changed and should be updated. |
| 182 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 189 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
| 183 const std::wstring& encoding) { } | 190 const std::wstring& encoding) { } |
| 184 | 191 |
| 185 // The destination URL has changed should be updated | 192 // The destination URL has changed should be updated |
| 186 virtual void UpdateTargetURL(int32 page_id, const GURL& url) { } | 193 virtual void UpdateTargetURL(int32 page_id, const GURL& url) { } |
| 187 | 194 |
| 188 // The thumbnail representation of the page changed and should be updated. | 195 // The thumbnail representation of the page changed and should be updated. |
| 189 virtual void UpdateThumbnail(const GURL& url, | 196 virtual void UpdateThumbnail(const GURL& url, |
| 190 const SkBitmap& bitmap, | 197 const SkBitmap& bitmap, |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 414 |
| 408 // A find operation in the current page completed. | 415 // A find operation in the current page completed. |
| 409 virtual void OnFindReply(int request_id, | 416 virtual void OnFindReply(int request_id, |
| 410 int number_of_matches, | 417 int number_of_matches, |
| 411 const gfx::Rect& selection_rect, | 418 const gfx::Rect& selection_rect, |
| 412 int active_match_ordinal, | 419 int active_match_ordinal, |
| 413 bool final_update) { } | 420 bool final_update) { } |
| 414 }; | 421 }; |
| 415 | 422 |
| 416 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 423 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |