Chromium Code Reviews| Index: content/public/browser/screen_orientation_provider_factory.h |
| diff --git a/content/public/browser/screen_orientation_provider_factory.h b/content/public/browser/screen_orientation_provider_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..99e95334169aa1a1a2e93400b899fca10a0e97a2 |
| --- /dev/null |
| +++ b/content/public/browser/screen_orientation_provider_factory.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ |
| +#define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +class ScreenOrientationDispatcherHost; |
| +class ScreenOrientationProvider; |
| +class WebContents; |
| + |
| +// Factory which can be extended in order to provide a platform specific |
| +// creation of ScreenOrientationProvider. |
| +class CONTENT_EXPORT ScreenOrientationProviderFactory { |
| + public: |
| + ScreenOrientationProviderFactory() {} |
| + virtual ~ScreenOrientationProviderFactory() {} |
| + |
| + // Creates a ScreenOrientationProvider for a ScreenOrientationDispatcherHost |
| + // to notify. |
| + virtual ScreenOrientationProvider* Create( |
|
mlamouri (slow - plz ping)
2014/09/16 20:21:04
ditto, should that be an own ptr?
|
| + ScreenOrientationDispatcherHost* dispatcher_host, |
| + WebContents* web_contents) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderFactory); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ |