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

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: Fix content shell Created 8 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 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..edc763080d98a43edcf49510cfa6061948285ccc 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,7 +90,12 @@ 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:
+
Charlie Reis 2012/08/02 23:06:47 No newline here?
awong 2012/08/03 00:31:04 Done.
// WebContentsImpl overrides
virtual void CreateNewWindow(
int route_id,

Powered by Google App Engine
This is Rietveld 408576698