OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace content { | |
12 | |
13 class ScreenOrientationDispatcherHost; | |
14 class ScreenOrientationProvider; | |
15 class WebContents; | |
16 | |
17 // Factory which can be extended in order to provide a platform specific | |
18 // creation of ScreenOrientationProvider. | |
19 class CONTENT_EXPORT ScreenOrientationProviderFactory { | |
20 public: | |
21 ScreenOrientationProviderFactory() {} | |
22 virtual ~ScreenOrientationProviderFactory() {} | |
23 | |
24 // Creates a ScreenOrientationProvider for a ScreenOrientationDispatcherHost | |
25 // to notify. | |
26 virtual ScreenOrientationProvider* Create( | |
mlamouri (slow - plz ping)
2014/09/16 20:21:04
ditto, should that be an own ptr?
| |
27 ScreenOrientationDispatcherHost* dispatcher_host, | |
28 WebContents* web_contents) = 0; | |
29 | |
30 private: | |
31 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderFactory); | |
32 }; | |
33 | |
34 } // namespace content | |
35 | |
36 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_ | |
OLD | NEW |