Chromium Code Reviews| 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/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/public/browser/navigation_controller.h" | |
|
jsbell
2014/06/03 16:56:39
Is this include needed here?
michaeln
2014/06/03 18:58:09
Yes, that's where the SessionStorageNamespaceMap t
| |
| 16 #include "content/public/browser/session_storage_namespace.h" | |
| 15 #include "content/public/common/media_stream_request.h" | 17 #include "content/public/common/media_stream_request.h" |
| 16 #include "content/public/common/page_transition_types.h" | 18 #include "content/public/common/page_transition_types.h" |
| 17 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
| 18 #include "third_party/WebKit/public/web/WebPopupType.h" | 20 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 19 #include "ui/base/window_open_disposition.h" | 21 #include "ui/base/window_open_disposition.h" |
| 20 | 22 |
| 21 class GURL; | 23 class GURL; |
| 22 class SkBitmap; | 24 class SkBitmap; |
| 23 struct ViewHostMsg_CreateWindow_Params; | 25 struct ViewHostMsg_CreateWindow_Params; |
| 24 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 26 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 // calling |callback|. | 272 // calling |callback|. |
| 271 virtual void RequestMediaAccessPermission( | 273 virtual void RequestMediaAccessPermission( |
| 272 const MediaStreamRequest& request, | 274 const MediaStreamRequest& request, |
| 273 const MediaResponseCallback& callback) {} | 275 const MediaResponseCallback& callback) {} |
| 274 | 276 |
| 275 // Returns the SessionStorageNamespace the render view should use. Might | 277 // Returns the SessionStorageNamespace the render view should use. Might |
| 276 // create the SessionStorageNamespace on the fly. | 278 // create the SessionStorageNamespace on the fly. |
| 277 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 279 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
| 278 SiteInstance* instance); | 280 SiteInstance* instance); |
| 279 | 281 |
| 282 // Returns a copy of the map of all session storage namespaces related | |
| 283 // to this view. | |
| 284 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); | |
| 285 | |
| 280 // Returns true if the RenderViewHost will never be visible. | 286 // Returns true if the RenderViewHost will never be visible. |
| 281 virtual bool IsNeverVisible(); | 287 virtual bool IsNeverVisible(); |
| 282 | 288 |
| 283 // Returns the FrameTree the render view should use. Guaranteed to be constant | 289 // Returns the FrameTree the render view should use. Guaranteed to be constant |
| 284 // for the lifetime of the render view. | 290 // for the lifetime of the render view. |
| 285 // | 291 // |
| 286 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 292 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
| 287 // created by the RenderViewHost. | 293 // created by the RenderViewHost. |
| 288 virtual FrameTree* GetFrameTree(); | 294 virtual FrameTree* GetFrameTree(); |
| 289 | 295 |
| 290 // Invoked when an accessibility event is received from the renderer. | 296 // Invoked when an accessibility event is received from the renderer. |
| 291 virtual void AccessibilityEventReceived( | 297 virtual void AccessibilityEventReceived( |
| 292 const std::vector<AXEventNotificationDetails>& details) {} | 298 const std::vector<AXEventNotificationDetails>& details) {} |
| 293 | 299 |
| 294 protected: | 300 protected: |
| 295 virtual ~RenderViewHostDelegate() {} | 301 virtual ~RenderViewHostDelegate() {} |
| 296 }; | 302 }; |
| 297 | 303 |
| 298 } // namespace content | 304 } // namespace content |
| 299 | 305 |
| 300 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 306 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |