OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // delegate can use this notification to show a warning to the user. | 320 // delegate can use this notification to show a warning to the user. |
321 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 321 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
322 bool is_during_unload) {} | 322 bool is_during_unload) {} |
323 | 323 |
324 // Notification that a previously unresponsive renderer has become | 324 // Notification that a previously unresponsive renderer has become |
325 // responsive again. The delegate can use this notification to end the | 325 // responsive again. The delegate can use this notification to end the |
326 // warning shown to the user. | 326 // warning shown to the user. |
327 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 327 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
328 | 328 |
329 // Notification that the RenderViewHost's load state changed. | 329 // Notification that the RenderViewHost's load state changed. |
330 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, | 330 virtual void LoadStateChanged(const GURL& url, |
331 uint64 upload_position, uint64 upload_size) {} | 331 const net::LoadStateWithParam& load_state, |
| 332 uint64 upload_position, |
| 333 uint64 upload_size) {} |
332 | 334 |
333 // Notification that a worker process has crashed. | 335 // Notification that a worker process has crashed. |
334 virtual void WorkerCrashed() {} | 336 virtual void WorkerCrashed() {} |
335 | 337 |
336 // The page wants the hosting window to activate/deactivate itself (it | 338 // The page wants the hosting window to activate/deactivate itself (it |
337 // called the JavaScript window.focus()/blur() method). | 339 // called the JavaScript window.focus()/blur() method). |
338 virtual void Activate() {} | 340 virtual void Activate() {} |
339 virtual void Deactivate() {} | 341 virtual void Deactivate() {} |
340 | 342 |
341 // Notification that the view has lost capture. | 343 // Notification that the view has lost capture. |
(...skipping 18 matching lines...) Expand all Loading... |
360 virtual void HandleMouseDown() {} | 362 virtual void HandleMouseDown() {} |
361 virtual void HandleMouseLeave() {} | 363 virtual void HandleMouseLeave() {} |
362 virtual void HandleMouseUp() {} | 364 virtual void HandleMouseUp() {} |
363 virtual void HandleMouseActivate() {} | 365 virtual void HandleMouseActivate() {} |
364 | 366 |
365 protected: | 367 protected: |
366 virtual ~RenderViewHostDelegate() {} | 368 virtual ~RenderViewHostDelegate() {} |
367 }; | 369 }; |
368 | 370 |
369 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |