| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "content/common/content_export.h" |
| 10 | 11 |
| 11 class RenderViewHost; | 12 class RenderViewHost; |
| 12 class RenderViewHostDelegate; | 13 class RenderViewHostDelegate; |
| 13 class SessionStorageNamespace; | 14 class SessionStorageNamespace; |
| 14 class SiteInstance; | 15 class SiteInstance; |
| 15 | 16 |
| 16 namespace base { | 17 namespace base { |
| 17 class WaitableEvent; | 18 class WaitableEvent; |
| 18 } // namespace base | 19 } // namespace base |
| 19 | 20 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // before the call. This class does NOT take ownership of the pointer. | 53 // before the call. This class does NOT take ownership of the pointer. |
| 53 static void RegisterFactory(RenderViewHostFactory* factory); | 54 static void RegisterFactory(RenderViewHostFactory* factory); |
| 54 | 55 |
| 55 // Unregister the previously registered factory. With no factory registered, | 56 // Unregister the previously registered factory. With no factory registered, |
| 56 // the default RenderViewHosts will be created. | 57 // the default RenderViewHosts will be created. |
| 57 static void UnregisterFactory(); | 58 static void UnregisterFactory(); |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 // The current globally registered factory. This is NULL when we should | 61 // The current globally registered factory. This is NULL when we should |
| 61 // create the default RenderViewHosts. | 62 // create the default RenderViewHosts. |
| 62 static RenderViewHostFactory* factory_; | 63 CONTENT_EXPORT static RenderViewHostFactory* factory_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); | 65 DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 | 68 |
| 68 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ | 69 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_FACTORY_H_ |
| OLD | NEW |