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

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

Issue 1359163005: Remove surface_id from RenderWidget/RenderWidgetHost and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@channel_creation_preempt
Patch Set: fix more tests Created 5 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) 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 30 matching lines...) Expand all
41 RenderViewHostFactory() {} 41 RenderViewHostFactory() {}
42 virtual ~RenderViewHostFactory() {} 42 virtual ~RenderViewHostFactory() {}
43 43
44 // You can derive from this class and specify an implementation for this 44 // You can derive from this class and specify an implementation for this
45 // function to create a different kind of RenderViewHost for testing. 45 // function to create a different kind of RenderViewHost for testing.
46 virtual RenderViewHost* CreateRenderViewHost( 46 virtual RenderViewHost* CreateRenderViewHost(
47 SiteInstance* instance, 47 SiteInstance* instance,
48 RenderViewHostDelegate* delegate, 48 RenderViewHostDelegate* delegate,
49 RenderWidgetHostDelegate* widget_delegate, 49 RenderWidgetHostDelegate* widget_delegate,
50 int32 routing_id, 50 int32 routing_id,
51 int32 surface_id,
52 int32 main_frame_routing_id, 51 int32 main_frame_routing_id,
53 bool swapped_out) = 0; 52 bool swapped_out) = 0;
54 53
55 // Registers your factory to be called when new RenderViewHosts are created. 54 // Registers your factory to be called when new RenderViewHosts are created.
56 // We have only one global factory, so there must be no factory registered 55 // We have only one global factory, so there must be no factory registered
57 // before the call. This class does NOT take ownership of the pointer. 56 // before the call. This class does NOT take ownership of the pointer.
58 CONTENT_EXPORT static void RegisterFactory(RenderViewHostFactory* factory); 57 CONTENT_EXPORT static void RegisterFactory(RenderViewHostFactory* factory);
59 58
60 // Unregister the previously registered factory. With no factory registered, 59 // Unregister the previously registered factory. With no factory registered,
61 // the default RenderViewHosts will be created. 60 // the default RenderViewHosts will be created.
62 CONTENT_EXPORT static void UnregisterFactory(); 61 CONTENT_EXPORT static void UnregisterFactory();
63 62
64 private: 63 private:
65 // The current globally registered factory. This is NULL when we should 64 // The current globally registered factory. This is NULL when we should
66 // create the default RenderViewHosts. 65 // create the default RenderViewHosts.
67 CONTENT_EXPORT static RenderViewHostFactory* factory_; 66 CONTENT_EXPORT static RenderViewHostFactory* factory_;
68 67
69 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); 68 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory);
70 }; 69 };
71 70
72 } // namespace content 71 } // namespace content
73 72
74 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ 73 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/renderer_host/render_view_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698