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