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/process/kill.h" | 12 #include "base/process/kill.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 14 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
17 #include "third_party/WebKit/public/web/WebPopupType.h" | 17 #include "third_party/WebKit/public/web/WebPopupType.h" |
18 #include "ui/base/window_open_disposition.h" | 18 #include "ui/base/window_open_disposition.h" |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 class SkBitmap; | 21 class SkBitmap; |
22 struct ViewHostMsg_CreateWindow_Params; | 22 struct ViewHostMsg_CreateWindow_Params; |
23 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 23 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
24 struct ViewMsg_PostMessage_Params; | |
25 | 24 |
26 namespace base { | 25 namespace base { |
27 class ListValue; | 26 class ListValue; |
28 class TimeTicks; | 27 class TimeTicks; |
29 } | 28 } |
30 | 29 |
31 namespace IPC { | 30 namespace IPC { |
32 class Message; | 31 class Message; |
33 } | 32 } |
34 | 33 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // The pending page load was canceled. | 121 // The pending page load was canceled. |
123 virtual void DidCancelLoading() {} | 122 virtual void DidCancelLoading() {} |
124 | 123 |
125 // The RenderView's main frame document element is ready. This happens when | 124 // The RenderView's main frame document element is ready. This happens when |
126 // the document has finished parsing. | 125 // the document has finished parsing. |
127 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 126 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
128 | 127 |
129 // The page wants to close the active view in this tab. | 128 // The page wants to close the active view in this tab. |
130 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 129 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
131 | 130 |
132 // The page wants to post a message to the active view in this tab. | |
133 virtual void RouteMessageEvent( | |
134 RenderViewHost* rvh, | |
135 const ViewMsg_PostMessage_Params& params) {} | |
136 | |
137 // Return a dummy RendererPreferences object that will be used by the renderer | 131 // Return a dummy RendererPreferences object that will be used by the renderer |
138 // associated with the owning RenderViewHost. | 132 // associated with the owning RenderViewHost. |
139 virtual RendererPreferences GetRendererPrefs( | 133 virtual RendererPreferences GetRendererPrefs( |
140 BrowserContext* browser_context) const = 0; | 134 BrowserContext* browser_context) const = 0; |
141 | 135 |
142 // Notification the user has made a gesture while focus was on the | 136 // Notification the user has made a gesture while focus was on the |
143 // page. This is used to avoid uninitiated user downloads (aka carpet | 137 // page. This is used to avoid uninitiated user downloads (aka carpet |
144 // bombing), see DownloadRequestLimiter for details. | 138 // bombing), see DownloadRequestLimiter for details. |
145 virtual void OnUserGesture() {} | 139 virtual void OnUserGesture() {} |
146 | 140 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 267 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
274 virtual bool IsVirtualKeyboardRequested(); | 268 virtual bool IsVirtualKeyboardRequested(); |
275 | 269 |
276 protected: | 270 protected: |
277 virtual ~RenderViewHostDelegate() {} | 271 virtual ~RenderViewHostDelegate() {} |
278 }; | 272 }; |
279 | 273 |
280 } // namespace content | 274 } // namespace content |
281 | 275 |
282 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 276 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |