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" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 protected: | 109 protected: |
110 virtual ~RendererManagement() {} | 110 virtual ~RendererManagement() {} |
111 }; | 111 }; |
112 | 112 |
113 // --------------------------------------------------------------------------- | 113 // --------------------------------------------------------------------------- |
114 | 114 |
115 // Returns the current delegate associated with a feature. May return NULL if | 115 // Returns the current delegate associated with a feature. May return NULL if |
116 // there is no corresponding delegate. | 116 // there is no corresponding delegate. |
117 virtual RenderViewHostDelegateView* GetDelegateView(); | 117 virtual RenderViewHostDelegateView* GetDelegateView(); |
118 virtual RendererManagement* GetRendererManagementDelegate(); | 118 virtual RendererManagement* GetRenderManager() const; |
119 | 119 |
120 // This is used to give the delegate a chance to filter IPC messages. | 120 // This is used to give the delegate a chance to filter IPC messages. |
121 virtual bool OnMessageReceived(RenderViewHost* render_view_host, | 121 virtual bool OnMessageReceived(RenderViewHost* render_view_host, |
122 const IPC::Message& message); | 122 const IPC::Message& message); |
123 | 123 |
124 // Gets the URL that is currently being displayed, if there is one. | 124 // Gets the URL that is currently being displayed, if there is one. |
125 virtual const GURL& GetURL() const; | 125 virtual const GURL& GetURL() const; |
126 | 126 |
127 // Return this object cast to a WebContents, if it is one. If the object is | 127 // Return this object cast to a WebContents, if it is one. If the object is |
128 // not a WebContents, returns NULL. DEPRECATED: Be sure to include brettw or | 128 // not a WebContents, returns NULL. DEPRECATED: Be sure to include brettw or |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // created by the RenderViewHost. | 450 // created by the RenderViewHost. |
451 virtual FrameTree* GetFrameTree(); | 451 virtual FrameTree* GetFrameTree(); |
452 | 452 |
453 protected: | 453 protected: |
454 virtual ~RenderViewHostDelegate() {} | 454 virtual ~RenderViewHostDelegate() {} |
455 }; | 455 }; |
456 | 456 |
457 } // namespace content | 457 } // namespace content |
458 | 458 |
459 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 459 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |