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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // calling |callback|. | 316 // calling |callback|. |
317 virtual void RequestMediaAccessPermission( | 317 virtual void RequestMediaAccessPermission( |
318 const MediaStreamRequest& request, | 318 const MediaStreamRequest& request, |
319 const MediaResponseCallback& callback) {} | 319 const MediaResponseCallback& callback) {} |
320 | 320 |
321 // Returns the SessionStorageNamespace the render view should use. Might | 321 // Returns the SessionStorageNamespace the render view should use. Might |
322 // create the SessionStorageNamespace on the fly. | 322 // create the SessionStorageNamespace on the fly. |
323 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 323 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
324 SiteInstance* instance); | 324 SiteInstance* instance); |
325 | 325 |
| 326 // Returns true if the RenderViewHost will never be visible. |
| 327 virtual bool IsNeverVisible(); |
| 328 |
326 // Returns the FrameTree the render view should use. Guaranteed to be constant | 329 // Returns the FrameTree the render view should use. Guaranteed to be constant |
327 // for the lifetime of the render view. | 330 // for the lifetime of the render view. |
328 // | 331 // |
329 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 332 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
330 // created by the RenderViewHost. | 333 // created by the RenderViewHost. |
331 virtual FrameTree* GetFrameTree(); | 334 virtual FrameTree* GetFrameTree(); |
332 | 335 |
333 // Invoked when an accessibility event is received from the renderer. | 336 // Invoked when an accessibility event is received from the renderer. |
334 virtual void AccessibilityEventReceived( | 337 virtual void AccessibilityEventReceived( |
335 const std::vector<AXEventNotificationDetails>& details) {} | 338 const std::vector<AXEventNotificationDetails>& details) {} |
336 | 339 |
337 protected: | 340 protected: |
338 virtual ~RenderViewHostDelegate() {} | 341 virtual ~RenderViewHostDelegate() {} |
339 }; | 342 }; |
340 | 343 |
341 } // namespace content | 344 } // namespace content |
342 | 345 |
343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 346 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |