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

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

Powered by Google App Engine
This is Rietveld 408576698