| 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 "content/public/common/media_stream_request.h" | |
| 17 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
| 18 #include "net/base/load_states.h" | 17 #include "net/base/load_states.h" |
| 19 #include "third_party/WebKit/public/web/WebPopupType.h" | 18 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 20 #include "ui/base/window_open_disposition.h" | 19 #include "ui/base/window_open_disposition.h" |
| 21 | 20 |
| 22 class GURL; | 21 class GURL; |
| 23 class SkBitmap; | 22 class SkBitmap; |
| 24 struct ViewHostMsg_CreateWindow_Params; | 23 struct ViewHostMsg_CreateWindow_Params; |
| 25 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 24 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 26 struct ViewMsg_PostMessage_Params; | 25 struct ViewMsg_PostMessage_Params; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 bool user_gesture) {} | 258 bool user_gesture) {} |
| 260 | 259 |
| 261 // Show the newly created widget with the specified bounds. | 260 // Show the newly created widget with the specified bounds. |
| 262 // The widget is identified by the route_id passed to CreateNewWidget. | 261 // The widget is identified by the route_id passed to CreateNewWidget. |
| 263 virtual void ShowCreatedWidget(int route_id, | 262 virtual void ShowCreatedWidget(int route_id, |
| 264 const gfx::Rect& initial_pos) {} | 263 const gfx::Rect& initial_pos) {} |
| 265 | 264 |
| 266 // Show the newly created full screen widget. Similar to above. | 265 // Show the newly created full screen widget. Similar to above. |
| 267 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 266 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
| 268 | 267 |
| 269 // The render view has requested access to media devices listed in | |
| 270 // |request|, and the client should grant or deny that permission by | |
| 271 // calling |callback|. | |
| 272 virtual void RequestMediaAccessPermission( | |
| 273 const MediaStreamRequest& request, | |
| 274 const MediaResponseCallback& callback) {} | |
| 275 | |
| 276 // Returns the SessionStorageNamespace the render view should use. Might | 268 // Returns the SessionStorageNamespace the render view should use. Might |
| 277 // create the SessionStorageNamespace on the fly. | 269 // create the SessionStorageNamespace on the fly. |
| 278 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 270 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
| 279 SiteInstance* instance); | 271 SiteInstance* instance); |
| 280 | 272 |
| 281 // Returns a copy of the map of all session storage namespaces related | 273 // Returns a copy of the map of all session storage namespaces related |
| 282 // to this view. | 274 // to this view. |
| 283 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); | 275 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); |
| 284 | 276 |
| 285 // Returns true if the RenderViewHost will never be visible. | 277 // Returns true if the RenderViewHost will never be visible. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 296 virtual void AccessibilityEventReceived( | 288 virtual void AccessibilityEventReceived( |
| 297 const std::vector<AXEventNotificationDetails>& details) {} | 289 const std::vector<AXEventNotificationDetails>& details) {} |
| 298 | 290 |
| 299 protected: | 291 protected: |
| 300 virtual ~RenderViewHostDelegate() {} | 292 virtual ~RenderViewHostDelegate() {} |
| 301 }; | 293 }; |
| 302 | 294 |
| 303 } // namespace content | 295 } // namespace content |
| 304 | 296 |
| 305 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 297 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |