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

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

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 36 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
37 struct ViewHostMsg_ShowPopup_Params; 37 struct ViewHostMsg_ShowPopup_Params;
38 struct ViewMsg_Navigate_Params; 38 struct ViewMsg_Navigate_Params;
39 struct ViewMsg_PostMessage_Params; 39 struct ViewMsg_PostMessage_Params;
40 struct ViewMsg_StopFinding_Params; 40 struct ViewMsg_StopFinding_Params;
41 41
42 namespace base { 42 namespace base {
43 class ListValue; 43 class ListValue;
44 } 44 }
45 45
46 namespace content {
47 class TestRenderViewHost;
48 class PowerSaveBlocker;
49 }
50
51 namespace ui { 46 namespace ui {
52 class Range; 47 class Range;
53 struct SelectedFileInfo; 48 struct SelectedFileInfo;
54 } 49 }
55 50
56 namespace content { 51 namespace content {
57 52
58 class SessionStorageNamespace; 53 class PowerSaveBlocker;
59 class RenderViewHostObserver; 54 class RenderViewHostObserver;
60 class RenderWidgetHostDelegate; 55 class RenderWidgetHostDelegate;
56 class SessionStorageNamespace;
57 class TestRenderViewHost;
58 struct ContextMenuParams;
61 struct FileChooserParams; 59 struct FileChooserParams;
62 struct ContextMenuParams;
63 struct Referrer; 60 struct Referrer;
64 struct ShowDesktopNotificationHostMsgParams; 61 struct ShowDesktopNotificationHostMsgParams;
65 62
66 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT 63 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT
67 // notifications. 64 // notifications.
68 class ExecuteNotificationObserver : public NotificationObserver { 65 class ExecuteNotificationObserver : public NotificationObserver {
69 public: 66 public:
70 explicit ExecuteNotificationObserver(int id); 67 explicit ExecuteNotificationObserver(int id);
71 virtual ~ExecuteNotificationObserver(); 68 virtual ~ExecuteNotificationObserver();
72 virtual void Observe(int type, 69 virtual void Observe(int type,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 virtual void ExitFullscreen() OVERRIDE; 194 virtual void ExitFullscreen() OVERRIDE;
198 virtual void Find(int request_id, const string16& search_text, 195 virtual void Find(int request_id, const string16& search_text,
199 const WebKit::WebFindOptions& options) OVERRIDE; 196 const WebKit::WebFindOptions& options) OVERRIDE;
200 virtual void StopFinding(StopFindAction action) OVERRIDE; 197 virtual void StopFinding(StopFindAction action) OVERRIDE;
201 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE; 198 virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE;
202 virtual void FilesSelectedInChooser( 199 virtual void FilesSelectedInChooser(
203 const std::vector<ui::SelectedFileInfo>& files, 200 const std::vector<ui::SelectedFileInfo>& files,
204 int permissions) OVERRIDE; 201 int permissions) OVERRIDE;
205 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE; 202 virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE;
206 virtual int GetEnabledBindings() const OVERRIDE; 203 virtual int GetEnabledBindings() const OVERRIDE;
207 virtual SessionStorageNamespace*
208 GetSessionStorageNamespace() OVERRIDE;
209 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 204 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
210 virtual void InsertCSS(const string16& frame_xpath, 205 virtual void InsertCSS(const string16& frame_xpath,
211 const std::string& css) OVERRIDE; 206 const std::string& css) OVERRIDE;
212 virtual bool IsRenderViewLive() const OVERRIDE; 207 virtual bool IsRenderViewLive() const OVERRIDE;
213 virtual void NotifyContextMenuClosed( 208 virtual void NotifyContextMenuClosed(
214 const CustomContextMenuContext& context) OVERRIDE; 209 const CustomContextMenuContext& context) OVERRIDE;
215 virtual void NotifyMoveOrResizeStarted() OVERRIDE; 210 virtual void NotifyMoveOrResizeStarted() OVERRIDE;
216 virtual void ReloadFrame() OVERRIDE; 211 virtual void ReloadFrame() OVERRIDE;
217 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE; 212 virtual void SetAltErrorPageURL(const GURL& url) OVERRIDE;
218 virtual void SetWebUIProperty(const std::string& name, 213 virtual void SetWebUIProperty(const std::string& name,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 virtual void Shutdown() OVERRIDE; 356 virtual void Shutdown() OVERRIDE;
362 virtual bool IsRenderView() const OVERRIDE; 357 virtual bool IsRenderView() const OVERRIDE;
363 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 358 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
364 virtual void GotFocus() OVERRIDE; 359 virtual void GotFocus() OVERRIDE;
365 virtual void LostCapture() OVERRIDE; 360 virtual void LostCapture() OVERRIDE;
366 virtual void LostMouseLock() OVERRIDE; 361 virtual void LostMouseLock() OVERRIDE;
367 virtual void ForwardMouseEvent( 362 virtual void ForwardMouseEvent(
368 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 363 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
369 virtual void OnPointerEventActivate() OVERRIDE; 364 virtual void OnPointerEventActivate() OVERRIDE;
370 virtual void ForwardKeyboardEvent( 365 virtual void ForwardKeyboardEvent(
371 const content::NativeWebKeyboardEvent& key_event) OVERRIDE; 366 const NativeWebKeyboardEvent& key_event) OVERRIDE;
372 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 367 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
373 368
374 // Creates a new RenderView with the given route id. 369 // Creates a new RenderView with the given route id.
375 void CreateNewWindow( 370 void CreateNewWindow(
376 int route_id, 371 int route_id,
377 const ViewHostMsg_CreateWindow_Params& params, 372 const ViewHostMsg_CreateWindow_Params& params,
378 SessionStorageNamespace* session_storage_namespace); 373 SessionStorageNamespace* session_storage_namespace);
379 374
380 // Creates a new RenderWidget with the given route id. |popup_type| indicates 375 // Creates a new RenderWidget with the given route id. |popup_type| indicates
381 // if this widget is a popup and what kind of popup it is (select, autofill). 376 // if this widget is a popup and what kind of popup it is (select, autofill).
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, 494 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect,
500 WebKit::WebTextDirection start_direction, 495 WebKit::WebTextDirection start_direction,
501 const gfx::Rect& end_rect, 496 const gfx::Rect& end_rect,
502 WebKit::WebTextDirection end_direction); 497 WebKit::WebTextDirection end_direction);
503 void OnMsgPasteFromSelectionClipboard(); 498 void OnMsgPasteFromSelectionClipboard();
504 void OnMsgRouteCloseEvent(); 499 void OnMsgRouteCloseEvent();
505 void OnMsgRouteMessageEvent(const ViewMsg_PostMessage_Params& params); 500 void OnMsgRouteMessageEvent(const ViewMsg_PostMessage_Params& params);
506 void OnMsgRunJavaScriptMessage(const string16& message, 501 void OnMsgRunJavaScriptMessage(const string16& message,
507 const string16& default_prompt, 502 const string16& default_prompt,
508 const GURL& frame_url, 503 const GURL& frame_url,
509 content::JavaScriptMessageType type, 504 JavaScriptMessageType type,
510 IPC::Message* reply_msg); 505 IPC::Message* reply_msg);
511 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 506 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
512 const string16& message, 507 const string16& message,
513 bool is_reload, 508 bool is_reload,
514 IPC::Message* reply_msg); 509 IPC::Message* reply_msg);
515 void OnMsgStartDragging(const WebDropData& drop_data, 510 void OnMsgStartDragging(const WebDropData& drop_data,
516 WebKit::WebDragOperationsMask operations_allowed, 511 WebKit::WebDragOperationsMask operations_allowed,
517 const SkBitmap& bitmap, 512 const SkBitmap& bitmap,
518 const gfx::Point& bitmap_offset_in_dip); 513 const gfx::Point& bitmap_offset_in_dip);
519 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); 514 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 bool send_accessibility_updated_notifications_; 638 bool send_accessibility_updated_notifications_;
644 639
645 // The most recently received accessibility tree - for unit testing only. 640 // The most recently received accessibility tree - for unit testing only.
646 AccessibilityNodeData accessibility_tree_; 641 AccessibilityNodeData accessibility_tree_;
647 642
648 // The termination status of the last render view that terminated. 643 // The termination status of the last render view that terminated.
649 base::TerminationStatus render_view_termination_status_; 644 base::TerminationStatus render_view_termination_status_;
650 645
651 // Holds PowerSaveBlockers for the media players in use. Key is the 646 // Holds PowerSaveBlockers for the media players in use. Key is the
652 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. 647 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker.
653 typedef std::map<int64, content::PowerSaveBlocker*> PowerSaveBlockerMap; 648 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
654 PowerSaveBlockerMap power_save_blockers_; 649 PowerSaveBlockerMap power_save_blockers_;
655 650
656 // A list of observers that filter messages. Weak references. 651 // A list of observers that filter messages. Weak references.
657 ObserverList<RenderViewHostObserver> observers_; 652 ObserverList<RenderViewHostObserver> observers_;
658 653
659 // When the last ShouldClose message was sent. 654 // When the last ShouldClose message was sent.
660 base::TimeTicks send_should_close_start_time_; 655 base::TimeTicks send_should_close_start_time_;
661 656
662 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 657 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
663 }; 658 };
664 659
665 #if defined(COMPILER_MSVC) 660 #if defined(COMPILER_MSVC)
666 #pragma warning(pop) 661 #pragma warning(pop)
667 #endif 662 #endif
668 663
669 } // namespace content 664 } // namespace content
670 665
671 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 666 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.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