OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 class RenderFrameHostDelegate; | |
15 class RenderViewHost; | 14 class RenderViewHost; |
16 class RenderViewHostDelegate; | 15 class RenderViewHostDelegate; |
17 class RenderWidgetHostDelegate; | 16 class RenderWidgetHostDelegate; |
18 class SessionStorageNamespace; | |
19 class SiteInstance; | 17 class SiteInstance; |
20 | 18 |
21 // A factory for creating RenderViewHosts. There is a global factory function | 19 // A factory for creating RenderViewHosts. There is a global factory function |
22 // that can be installed for the purposes of testing to provide a specialized | 20 // that can be installed for the purposes of testing to provide a specialized |
23 // RenderViewHost class. | 21 // RenderViewHost class. |
24 class RenderViewHostFactory { | 22 class RenderViewHostFactory { |
25 public: | 23 public: |
26 // Creates a RenderViewHost using the currently registered factory, or the | 24 // Creates a RenderViewHost using the currently registered factory, or the |
27 // default one if no factory is registered. Ownership of the returned | 25 // default one if no factory is registered. Ownership of the returned |
28 // pointer will be passed to the caller. | 26 // pointer will be passed to the caller. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Set to true if the RenderViewHost is not a test instance. Defaults to | 80 // Set to true if the RenderViewHost is not a test instance. Defaults to |
83 // false. | 81 // false. |
84 CONTENT_EXPORT static bool is_real_render_view_host_; | 82 CONTENT_EXPORT static bool is_real_render_view_host_; |
85 | 83 |
86 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); | 84 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); |
87 }; | 85 }; |
88 | 86 |
89 } // namespace content | 87 } // namespace content |
90 | 88 |
91 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ | 89 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ |
OLD | NEW |