| 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 "chrome/common/render_messages.h" | 12 #include "base/file_path.h" |
| 13 #include "base/logging.h" |
| 13 #include "net/base/load_states.h" | 14 #include "net/base/load_states.h" |
| 15 #include "webkit/glue/password_form.h" |
| 14 #include "webkit/glue/webpreferences.h" | 16 #include "webkit/glue/webpreferences.h" |
| 17 #include "webkit/glue/window_open_disposition.h" |
| 15 | 18 |
| 16 class AutofillForm; | 19 class AutofillForm; |
| 17 class NavigationEntry; | 20 class NavigationEntry; |
| 18 class Profile; | 21 class Profile; |
| 19 class RenderProcessHost; | 22 class RenderProcessHost; |
| 20 class RenderViewHost; | 23 class RenderViewHost; |
| 21 class SkBitmap; | 24 class SkBitmap; |
| 22 class WebContents; | 25 class WebContents; |
| 26 class WebKeyboardEvent; |
| 27 struct ThumbnailScore; |
| 28 struct ViewHostMsg_ContextMenu_Params; |
| 29 struct ViewHostMsg_DidPrintPage_Params; |
| 30 struct ViewHostMsg_FrameNavigate_Params; |
| 23 struct WebDropData; | 31 struct WebDropData; |
| 24 enum WindowOpenDisposition; | |
| 25 | 32 |
| 26 namespace base { | 33 namespace base { |
| 27 class WaitableEvent; | 34 class WaitableEvent; |
| 28 } | 35 } |
| 29 | 36 |
| 30 namespace IPC { | 37 namespace IPC { |
| 31 class Message; | 38 class Message; |
| 32 } | 39 } |
| 33 | 40 |
| 34 namespace gfx { | 41 namespace gfx { |
| 35 class Rect; | 42 class Rect; |
| 36 } | 43 } |
| 37 | 44 |
| 45 namespace webkit_glue { |
| 46 struct WebApplicationInfo; |
| 47 } |
| 48 |
| 38 // | 49 // |
| 39 // RenderViewHostDelegate | 50 // RenderViewHostDelegate |
| 40 // | 51 // |
| 41 // An interface implemented by an object interested in knowing about the state | 52 // An interface implemented by an object interested in knowing about the state |
| 42 // of the RenderViewHost. | 53 // of the RenderViewHost. |
| 43 // | 54 // |
| 44 // This interface currently encompasses every type of message that was | 55 // This interface currently encompasses every type of message that was |
| 45 // previously being sent by WebContents itself. Some of these notifications | 56 // previously being sent by WebContents itself. Some of these notifications |
| 46 // may not be relevant to all users of RenderViewHost and we should consider | 57 // may not be relevant to all users of RenderViewHost and we should consider |
| 47 // exposing a more generic Send function on RenderViewHost and a response | 58 // exposing a more generic Send function on RenderViewHost and a response |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // page. This is used to avoid uninitiated user downloads (aka carpet | 395 // page. This is used to avoid uninitiated user downloads (aka carpet |
| 385 // bombing), see DownloadRequestManager for details. | 396 // bombing), see DownloadRequestManager for details. |
| 386 virtual void OnEnterOrSpace() { } | 397 virtual void OnEnterOrSpace() { } |
| 387 | 398 |
| 388 // If this view can be terminated without any side effects | 399 // If this view can be terminated without any side effects |
| 389 virtual bool CanTerminate() const { return true; } | 400 virtual bool CanTerminate() const { return true; } |
| 390 }; | 401 }; |
| 391 | 402 |
| 392 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 403 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 393 | 404 |
| OLD | NEW |