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

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

Issue 19491004: Fix SessionStorage confusion between RenderViewHostImpl and NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // WebContentses to share the same session storage (part of the WebStorage 116 // WebContentses to share the same session storage (part of the WebStorage
117 // spec) space. This is useful when restoring contentses, but most callers 117 // spec) space. This is useful when restoring contentses, but most callers
118 // should pass in NULL which will cause a new SessionStorageNamespace to be 118 // should pass in NULL which will cause a new SessionStorageNamespace to be
119 // created. 119 // created.
120 RenderViewHostImpl( 120 RenderViewHostImpl(
121 SiteInstance* instance, 121 SiteInstance* instance,
122 RenderViewHostDelegate* delegate, 122 RenderViewHostDelegate* delegate,
123 RenderWidgetHostDelegate* widget_delegate, 123 RenderWidgetHostDelegate* widget_delegate,
124 int routing_id, 124 int routing_id,
125 int main_frame_routing_id, 125 int main_frame_routing_id,
126 bool swapped_out, 126 bool swapped_out);
127 SessionStorageNamespace* session_storage_namespace);
128 virtual ~RenderViewHostImpl(); 127 virtual ~RenderViewHostImpl();
129 128
130 // RenderViewHost implementation. 129 // RenderViewHost implementation.
131 virtual void AllowBindings(int binding_flags) OVERRIDE; 130 virtual void AllowBindings(int binding_flags) OVERRIDE;
132 virtual void ClearFocusedNode() OVERRIDE; 131 virtual void ClearFocusedNode() OVERRIDE;
133 virtual void ClosePage() OVERRIDE; 132 virtual void ClosePage() OVERRIDE;
134 virtual void CopyImageAt(int x, int y) OVERRIDE; 133 virtual void CopyImageAt(int x, int y) OVERRIDE;
135 virtual void DisassociateFromPopupCount() OVERRIDE; 134 virtual void DisassociateFromPopupCount() OVERRIDE;
136 virtual void DesktopNotificationPermissionRequestDone( 135 virtual void DesktopNotificationPermissionRequestDone(
137 int callback_context) OVERRIDE; 136 int callback_context) OVERRIDE;
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // Accessibility callback for testing. 680 // Accessibility callback for testing.
682 base::Callback<void(AccessibilityNotification)> 681 base::Callback<void(AccessibilityNotification)>
683 accessibility_testing_callback_; 682 accessibility_testing_callback_;
684 683
685 // The most recently received accessibility tree - for testing only. 684 // The most recently received accessibility tree - for testing only.
686 AccessibilityNodeDataTreeNode accessibility_tree_; 685 AccessibilityNodeDataTreeNode accessibility_tree_;
687 686
688 // True if the render view can be shut down suddenly. 687 // True if the render view can be shut down suddenly.
689 bool sudden_termination_allowed_; 688 bool sudden_termination_allowed_;
690 689
691 // The session storage namespace to be used by the associated render view.
692 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_;
693
694 // The termination status of the last render view that terminated. 690 // The termination status of the last render view that terminated.
695 base::TerminationStatus render_view_termination_status_; 691 base::TerminationStatus render_view_termination_status_;
696 692
697 // A list of observers that filter messages. Weak references. 693 // A list of observers that filter messages. Weak references.
698 ObserverList<RenderViewHostObserver> observers_; 694 ObserverList<RenderViewHostObserver> observers_;
699 695
700 // When the last ShouldClose message was sent. 696 // When the last ShouldClose message was sent.
701 base::TimeTicks send_should_close_start_time_; 697 base::TimeTicks send_should_close_start_time_;
702 698
703 #if defined(OS_ANDROID) 699 #if defined(OS_ANDROID)
704 // Manages all the android mediaplayer objects and handling IPCs for video. 700 // Manages all the android mediaplayer objects and handling IPCs for video.
705 // This class inherits from RenderViewHostObserver. 701 // This class inherits from RenderViewHostObserver.
706 media::MediaPlayerManager* media_player_manager_; 702 media::MediaPlayerManager* media_player_manager_;
707 #endif 703 #endif
708 704
709 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 705 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
710 }; 706 };
711 707
712 #if defined(COMPILER_MSVC) 708 #if defined(COMPILER_MSVC)
713 #pragma warning(pop) 709 #pragma warning(pop)
714 #endif 710 #endif
715 711
716 } // namespace content 712 } // namespace content
717 713
718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 714 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_factory.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698