| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class SkBitmap; | 43 class SkBitmap; |
| 44 class SSLClientAuthHandler; | 44 class SSLClientAuthHandler; |
| 45 class SSLAddCertHandler; | 45 class SSLAddCertHandler; |
| 46 class TabContents; | 46 class TabContents; |
| 47 struct ThumbnailScore; | 47 struct ThumbnailScore; |
| 48 struct ViewHostMsg_DidPrintPage_Params; | 48 struct ViewHostMsg_DidPrintPage_Params; |
| 49 struct ViewHostMsg_DomMessage_Params; | 49 struct ViewHostMsg_DomMessage_Params; |
| 50 struct ViewHostMsg_FrameNavigate_Params; | 50 struct ViewHostMsg_FrameNavigate_Params; |
| 51 struct ViewHostMsg_PageHasOSDD_Type; | 51 struct ViewHostMsg_PageHasOSDD_Type; |
| 52 struct ViewHostMsg_RunFileChooser_Params; | 52 struct ViewHostMsg_RunFileChooser_Params; |
| 53 struct WebApplicationInfo; |
| 53 struct WebDropData; | 54 struct WebDropData; |
| 54 struct WebMenuItem; | 55 struct WebMenuItem; |
| 55 class WebKeyboardEvent; | 56 class WebKeyboardEvent; |
| 56 struct WebPreferences; | 57 struct WebPreferences; |
| 57 | 58 |
| 58 namespace base { | 59 namespace base { |
| 59 class WaitableEvent; | 60 class WaitableEvent; |
| 60 } | 61 } |
| 61 | 62 |
| 62 namespace gfx { | 63 namespace gfx { |
| 63 class Point; | 64 class Point; |
| 64 class Rect; | 65 class Rect; |
| 65 class Size; | 66 class Size; |
| 66 } | 67 } |
| 67 | 68 |
| 68 namespace IPC { | 69 namespace IPC { |
| 69 class Message; | 70 class Message; |
| 70 } | 71 } |
| 71 | 72 |
| 72 namespace webkit_glue { | 73 namespace webkit_glue { |
| 73 struct FormData; | 74 struct FormData; |
| 74 class FormField; | 75 class FormField; |
| 75 struct PasswordForm; | 76 struct PasswordForm; |
| 76 struct WebApplicationInfo; | |
| 77 } | 77 } |
| 78 | 78 |
| 79 // | 79 // |
| 80 // RenderViewHostDelegate | 80 // RenderViewHostDelegate |
| 81 // | 81 // |
| 82 // An interface implemented by an object interested in knowing about the state | 82 // An interface implemented by an object interested in knowing about the state |
| 83 // of the RenderViewHost. | 83 // of the RenderViewHost. |
| 84 // | 84 // |
| 85 // This interface currently encompasses every type of message that was | 85 // This interface currently encompasses every type of message that was |
| 86 // previously being sent by TabContents itself. Some of these notifications | 86 // previously being sent by TabContents itself. Some of these notifications |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // need to implement this function somewhere that doesn't need any other | 273 // need to implement this function somewhere that doesn't need any other |
| 274 // BrowserIntegration callbacks, feel free to move it elsewhere. | 274 // BrowserIntegration callbacks, feel free to move it elsewhere. |
| 275 virtual void OnCrashedPlugin(const FilePath& plugin_path) = 0; | 275 virtual void OnCrashedPlugin(const FilePath& plugin_path) = 0; |
| 276 | 276 |
| 277 // Notification that a worker process has crashed. | 277 // Notification that a worker process has crashed. |
| 278 virtual void OnCrashedWorker() = 0; | 278 virtual void OnCrashedWorker() = 0; |
| 279 | 279 |
| 280 virtual void OnDisabledOutdatedPlugin(const string16& name, | 280 virtual void OnDisabledOutdatedPlugin(const string16& name, |
| 281 const GURL& update_url) = 0; | 281 const GURL& update_url) = 0; |
| 282 | 282 |
| 283 // Notification that a request for install info has completed. | 283 // Notification that a user's request to install an application has |
| 284 // completed. |
| 284 virtual void OnDidGetApplicationInfo( | 285 virtual void OnDidGetApplicationInfo( |
| 285 int32 page_id, | 286 int32 page_id, |
| 286 const webkit_glue::WebApplicationInfo& app_info) = 0; | 287 const WebApplicationInfo& app_info) = 0; |
| 287 | 288 |
| 288 // Notification that the contents of the page has been loaded. | 289 // Notification that the contents of the page has been loaded. |
| 289 virtual void OnPageContents(const GURL& url, | 290 virtual void OnPageContents(const GURL& url, |
| 290 int renderer_process_id, | 291 int renderer_process_id, |
| 291 int32 page_id, | 292 int32 page_id, |
| 292 const string16& contents, | 293 const string16& contents, |
| 293 const std::string& language, | 294 const std::string& language, |
| 294 bool page_translatable) = 0; | 295 bool page_translatable) = 0; |
| 295 | 296 |
| 296 // Notification that the page has been translated. | 297 // Notification that the page has been translated. |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 bool remember) {} | 867 bool remember) {} |
| 867 | 868 |
| 868 // Update the content restrictions, i.e. disable print/copy. | 869 // Update the content restrictions, i.e. disable print/copy. |
| 869 virtual void UpdateContentRestrictions(int restrictions) {} | 870 virtual void UpdateContentRestrictions(int restrictions) {} |
| 870 | 871 |
| 871 protected: | 872 protected: |
| 872 virtual ~RenderViewHostDelegate() {} | 873 virtual ~RenderViewHostDelegate() {} |
| 873 }; | 874 }; |
| 874 | 875 |
| 875 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 876 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |