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

Unified Diff: content/browser/web_contents/test_web_contents.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/test_web_contents.h
diff --git a/content/browser/web_contents/test_web_contents.h b/content/browser/web_contents/test_web_contents.h
index d8ab7dd7ae346e7f76d28eb80604e97a2f99bbce..d4f79189dc3c79c73231e54b8376de0f7672e5d9 100644
--- a/content/browser/web_contents/test_web_contents.h
+++ b/content/browser/web_contents/test_web_contents.h
@@ -22,9 +22,11 @@ class WebContentsTester;
// and does not do anything involving views.
class TestWebContents : public WebContentsImpl, public WebContentsTester {
public:
- TestWebContents(BrowserContext* browser_context, SiteInstance* instance);
virtual ~TestWebContents();
+ static TestWebContents* Create(BrowserContext* browser_context,
+ SiteInstance* instance);
+
// WebContentsTester implementation.
virtual void CommitPendingNavigation() OVERRIDE;
virtual int GetNumberOfFocusCalls() OVERRIDE;
@@ -88,6 +90,10 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
int history_length,
int32 min_page_id) OVERRIDE;
+ protected:
+ // The deprecated WebContentsTester still needs to subclass this.
+ explicit TestWebContents(BrowserContext* browser_context);
+
private:
// WebContentsImpl overrides
virtual void CreateNewWindow(
« no previous file with comments | « content/browser/web_contents/render_view_host_manager_unittest.cc ('k') | content/browser/web_contents/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698