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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.h

Issue 3325012: Fix SessionStorage (Closed)
Patch Set: kill the last (new) dcheck Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 public: 210 public:
211 explicit TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory); 211 explicit TestRenderViewHostFactory(RenderProcessHostFactory* rph_factory);
212 virtual ~TestRenderViewHostFactory(); 212 virtual ~TestRenderViewHostFactory();
213 213
214 virtual void set_render_process_host_factory( 214 virtual void set_render_process_host_factory(
215 RenderProcessHostFactory* rph_factory); 215 RenderProcessHostFactory* rph_factory);
216 virtual RenderViewHost* CreateRenderViewHost( 216 virtual RenderViewHost* CreateRenderViewHost(
217 SiteInstance* instance, 217 SiteInstance* instance,
218 RenderViewHostDelegate* delegate, 218 RenderViewHostDelegate* delegate,
219 int routing_id, 219 int routing_id,
220 int64 session_storage_namespace_id); 220 SessionStorageNamespace* session_storage);
221 221
222 private: 222 private:
223 // This is a bit of a hack. With the current design of the site instances / 223 // This is a bit of a hack. With the current design of the site instances /
224 // browsing instances, it's difficult to pass a RenderProcessHostFactory 224 // browsing instances, it's difficult to pass a RenderProcessHostFactory
225 // around properly. 225 // around properly.
226 // 226 //
227 // Instead, we set it right before we create a new RenderViewHost, which 227 // Instead, we set it right before we create a new RenderViewHost, which
228 // happens before the RenderProcessHost is created. This way, the instance 228 // happens before the RenderProcessHost is created. This way, the instance
229 // has the correct factory and creates our special RenderProcessHosts. 229 // has the correct factory and creates our special RenderProcessHosts.
230 RenderProcessHostFactory* render_process_host_factory_; 230 RenderProcessHostFactory* render_process_host_factory_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 MockRenderProcessHostFactory rph_factory_; 275 MockRenderProcessHostFactory rph_factory_;
276 TestRenderViewHostFactory rvh_factory_; 276 TestRenderViewHostFactory rvh_factory_;
277 277
278 scoped_ptr<TestTabContents> contents_; 278 scoped_ptr<TestTabContents> contents_;
279 279
280 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 280 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
281 }; 281 };
282 282
283 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ 283 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698