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

Side by Side Diff: content/test/test_render_view_host_factory.h

Issue 10377158: Move keyboard related methods from RenderViewHostDelegate to a new RenderWidgetHostDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove crbug link Created 8 years, 7 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_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 explicit TestRenderViewHostFactory( 26 explicit TestRenderViewHostFactory(
27 content::RenderProcessHostFactory* rph_factory); 27 content::RenderProcessHostFactory* rph_factory);
28 virtual ~TestRenderViewHostFactory(); 28 virtual ~TestRenderViewHostFactory();
29 29
30 virtual void set_render_process_host_factory( 30 virtual void set_render_process_host_factory(
31 content::RenderProcessHostFactory* rph_factory); 31 content::RenderProcessHostFactory* rph_factory);
32 virtual content::RenderViewHost* CreateRenderViewHost( 32 virtual content::RenderViewHost* CreateRenderViewHost(
33 content::SiteInstance* instance, 33 content::SiteInstance* instance,
34 content::RenderViewHostDelegate* delegate, 34 content::RenderViewHostDelegate* delegate,
35 content::RenderWidgetHostDelegate* widget_delegate,
35 int routing_id, 36 int routing_id,
36 bool swapped_out, 37 bool swapped_out,
37 content::SessionStorageNamespace* session_storage) OVERRIDE; 38 content::SessionStorageNamespace* session_storage) OVERRIDE;
38 39
39 private: 40 private:
40 // This is a bit of a hack. With the current design of the site instances / 41 // This is a bit of a hack. With the current design of the site instances /
41 // browsing instances, it's difficult to pass a RenderProcessHostFactory 42 // browsing instances, it's difficult to pass a RenderProcessHostFactory
42 // around properly. 43 // around properly.
43 // 44 //
44 // Instead, we set it right before we create a new RenderViewHost, which 45 // Instead, we set it right before we create a new RenderViewHost, which
45 // happens before the RenderProcessHost is created. This way, the instance 46 // happens before the RenderProcessHost is created. This way, the instance
46 // has the correct factory and creates our special RenderProcessHosts. 47 // has the correct factory and creates our special RenderProcessHosts.
47 content::RenderProcessHostFactory* render_process_host_factory_; 48 content::RenderProcessHostFactory* render_process_host_factory_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHostFactory); 50 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHostFactory);
50 }; 51 };
51 52
52 } // namespace content 53 } // namespace content
53 54
54 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_ 55 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host_delegate.cc ('k') | content/test/test_render_view_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698