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

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

Issue 8392041: Prerendered tabs use the same SessionStorage namespace as the tab that triggered the prerender. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: string_ordinal_unittest Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 void DisassociateFromPopupCount(); 465 void DisassociateFromPopupCount();
466 466
467 // Notification that a move or resize renderer's containing window has 467 // Notification that a move or resize renderer's containing window has
468 // started. 468 // started.
469 void NotifyMoveOrResizeStarted(); 469 void NotifyMoveOrResizeStarted();
470 470
471 // Notifies the renderer that the user has closed the FindInPage window 471 // Notifies the renderer that the user has closed the FindInPage window
472 // (and what action to take regarding the selection). 472 // (and what action to take regarding the selection).
473 void StopFinding(const ViewMsg_StopFinding_Params& params); 473 void StopFinding(const ViewMsg_StopFinding_Params& params);
474 474
475 SessionStorageNamespace* session_storage_namespace() {
476 return session_storage_namespace_.get();
477 }
478
475 // NOTE: Do not add functions that just send an IPC message that are called in 479 // NOTE: Do not add functions that just send an IPC message that are called in
476 // one or two places. Have the caller send the IPC message directly. 480 // one or two places. Have the caller send the IPC message directly.
477 481
478 protected: 482 protected:
479 friend class RenderViewHostObserver; 483 friend class RenderViewHostObserver;
480 484
481 // Add and remove observers for filtering IPC messages. Clients must be sure 485 // Add and remove observers for filtering IPC messages. Clients must be sure
482 // to remove the observer before they go away. 486 // to remove the observer before they go away.
483 void AddObserver(RenderViewHostObserver* observer); 487 void AddObserver(RenderViewHostObserver* observer);
484 void RemoveObserver(RenderViewHostObserver* observer); 488 void RemoveObserver(RenderViewHostObserver* observer);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 675 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
672 PowerSaveBlockerMap power_save_blockers_; 676 PowerSaveBlockerMap power_save_blockers_;
673 677
674 // A list of observers that filter messages. Weak references. 678 // A list of observers that filter messages. Weak references.
675 ObserverList<RenderViewHostObserver> observers_; 679 ObserverList<RenderViewHostObserver> observers_;
676 680
677 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 681 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
678 }; 682 };
679 683
680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698