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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class RenderViewHostDelegateView; | 51 class RenderViewHostDelegateView; |
52 class SessionStorageNamespace; | 52 class SessionStorageNamespace; |
53 class WebContents; | 53 class WebContents; |
54 class WebContentsImpl; | 54 class WebContentsImpl; |
55 struct ContextMenuParams; | 55 struct ContextMenuParams; |
56 struct FileChooserParams; | 56 struct FileChooserParams; |
57 struct GlobalRequestID; | 57 struct GlobalRequestID; |
58 struct NativeWebKeyboardEvent; | 58 struct NativeWebKeyboardEvent; |
59 struct Referrer; | 59 struct Referrer; |
60 struct RendererPreferences; | 60 struct RendererPreferences; |
| 61 class SiteInstance; |
61 | 62 |
62 // | 63 // |
63 // RenderViewHostDelegate | 64 // RenderViewHostDelegate |
64 // | 65 // |
65 // An interface implemented by an object interested in knowing about the state | 66 // An interface implemented by an object interested in knowing about the state |
66 // of the RenderViewHost. | 67 // of the RenderViewHost. |
67 // | 68 // |
68 // This interface currently encompasses every type of message that was | 69 // This interface currently encompasses every type of message that was |
69 // previously being sent by WebContents itself. Some of these notifications | 70 // previously being sent by WebContents itself. Some of these notifications |
70 // may not be relevant to all users of RenderViewHost and we should consider | 71 // may not be relevant to all users of RenderViewHost and we should consider |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 // provided in the supplied params. | 408 // provided in the supplied params. |
408 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 409 virtual void ShowContextMenu(const ContextMenuParams& params) {} |
409 | 410 |
410 // The render view has requested access to media devices listed in | 411 // The render view has requested access to media devices listed in |
411 // |request|, and the client should grant or deny that permission by | 412 // |request|, and the client should grant or deny that permission by |
412 // calling |callback|. | 413 // calling |callback|. |
413 virtual void RequestMediaAccessPermission( | 414 virtual void RequestMediaAccessPermission( |
414 const MediaStreamRequest& request, | 415 const MediaStreamRequest& request, |
415 const MediaResponseCallback& callback) {} | 416 const MediaResponseCallback& callback) {} |
416 | 417 |
| 418 // Returns the SessionStorageNamespace the render view should use. Might |
| 419 // create the SessionStorageNamespace on the fly. |
| 420 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
| 421 SiteInstance* instance); |
| 422 |
417 protected: | 423 protected: |
418 virtual ~RenderViewHostDelegate() {} | 424 virtual ~RenderViewHostDelegate() {} |
419 }; | 425 }; |
420 | 426 |
421 } // namespace content | 427 } // namespace content |
422 | 428 |
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |