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