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

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: mac win compile fixes 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 size_t offset, 492 size_t offset,
498 const ui::Range& range); 493 const ui::Range& range);
499 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, 494 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect,
500 const gfx::Rect& end_rect); 495 const gfx::Rect& end_rect);
501 void OnMsgPasteFromSelectionClipboard(); 496 void OnMsgPasteFromSelectionClipboard();
502 void OnMsgRouteCloseEvent(); 497 void OnMsgRouteCloseEvent();
503 void OnMsgRouteMessageEvent(const ViewMsg_PostMessage_Params& params); 498 void OnMsgRouteMessageEvent(const ViewMsg_PostMessage_Params& params);
504 void OnMsgRunJavaScriptMessage(const string16& message, 499 void OnMsgRunJavaScriptMessage(const string16& message,
505 const string16& default_prompt, 500 const string16& default_prompt,
506 const GURL& frame_url, 501 const GURL& frame_url,
507 content::JavaScriptMessageType type, 502 JavaScriptMessageType type,
508 IPC::Message* reply_msg); 503 IPC::Message* reply_msg);
509 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 504 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
510 const string16& message, 505 const string16& message,
511 bool is_reload, 506 bool is_reload,
512 IPC::Message* reply_msg); 507 IPC::Message* reply_msg);
513 void OnMsgStartDragging(const WebDropData& drop_data, 508 void OnMsgStartDragging(const WebDropData& drop_data,
514 WebKit::WebDragOperationsMask operations_allowed, 509 WebKit::WebDragOperationsMask operations_allowed,
515 const SkBitmap& bitmap, 510 const SkBitmap& bitmap,
516 const gfx::Point& bitmap_offset_in_dip); 511 const gfx::Point& bitmap_offset_in_dip);
517 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); 512 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 bool send_accessibility_updated_notifications_; 636 bool send_accessibility_updated_notifications_;
642 637
643 // The most recently received accessibility tree - for unit testing only. 638 // The most recently received accessibility tree - for unit testing only.
644 AccessibilityNodeData accessibility_tree_; 639 AccessibilityNodeData accessibility_tree_;
645 640
646 // The termination status of the last render view that terminated. 641 // The termination status of the last render view that terminated.
647 base::TerminationStatus render_view_termination_status_; 642 base::TerminationStatus render_view_termination_status_;
648 643
649 // Holds PowerSaveBlockers for the media players in use. Key is the 644 // Holds PowerSaveBlockers for the media players in use. Key is the
650 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker. 645 // player_cookie passed to OnMediaNotification, value is the PowerSaveBlocker.
651 typedef std::map<int64, content::PowerSaveBlocker*> PowerSaveBlockerMap; 646 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
652 PowerSaveBlockerMap power_save_blockers_; 647 PowerSaveBlockerMap power_save_blockers_;
653 648
654 // A list of observers that filter messages. Weak references. 649 // A list of observers that filter messages. Weak references.
655 ObserverList<RenderViewHostObserver> observers_; 650 ObserverList<RenderViewHostObserver> observers_;
656 651
657 // When the last ShouldClose message was sent. 652 // When the last ShouldClose message was sent.
658 base::TimeTicks send_should_close_start_time_; 653 base::TimeTicks send_should_close_start_time_;
659 654
660 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 655 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
661 }; 656 };
662 657
663 #if defined(COMPILER_MSVC) 658 #if defined(COMPILER_MSVC)
664 #pragma warning(pop) 659 #pragma warning(pop)
665 #endif 660 #endif
666 661
667 } // namespace content 662 } // namespace content
668 663
669 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 664 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698