Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 305103003: Fix for 'Simple Adblock' extension crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jsbell's review comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
jochen (gone - plz use gerrit) 2014/06/04 08:16:24 why?
michaeln 2014/06/04 23:53:28 SessionStorageNamespaceMap typedef is defined ther
16 #include "content/public/browser/session_storage_namespace.h"
jochen (gone - plz use gerrit) 2014/06/04 08:16:24 inside content, we should directly include the *im
michaeln 2014/06/04 23:53:28 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698