| Index: content/browser/screen_orientation/screen_orientation_service_impl.h | 
| diff --git a/content/browser/screen_orientation/screen_orientation_service_impl.h b/content/browser/screen_orientation/screen_orientation_service_impl.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..ac95634fad793efe44e5ce04ed0e13e4db32f825 | 
| --- /dev/null | 
| +++ b/content/browser/screen_orientation/screen_orientation_service_impl.h | 
| @@ -0,0 +1,42 @@ | 
| +// 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. | 
| + | 
| +#include "base/callback.h" | 
| +#include "base/memory/weak_ptr.h" | 
| +#include "content/common/screen_orientation_service.mojom.h" | 
| + | 
| +#ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_SERVICE_IMPL_H_ | 
| +#define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_SERVICE_IMPL_H_ | 
| + | 
| +namespace content { | 
| + | 
| +class ScreenOrientationProvider; | 
| + | 
| +class ScreenOrientationServiceImpl | 
| +    : public mojo::InterfaceImpl<ScreenOrientationService> { | 
| + public: | 
| +  static void Create(ScreenOrientationProvider* provider, | 
| +                     mojo::InterfaceRequest<ScreenOrientationService> request); | 
| + | 
| + private: | 
| +  ScreenOrientationServiceImpl(ScreenOrientationProvider* provider); | 
| +  virtual ~ScreenOrientationServiceImpl(); | 
| + | 
| +  void NotifyLockResult(ScreenOrientationLockResult result); | 
| + | 
| +  // ScreenOrientationService: | 
| +  virtual void LockOrientation( | 
| +      ScreenOrientationLockType lock_type, | 
| +      const mojo::Callback<void(ScreenOrientationLockResult)>& callback) | 
| +      OVERRIDE; | 
| +  virtual void UnlockOrientation() OVERRIDE; | 
| + | 
| +  ScreenOrientationProvider* provider_; | 
| +  mojo::Callback<void(ScreenOrientationLockResult)> on_result_callback_; | 
| +  base::WeakPtrFactory<ScreenOrientationServiceImpl> weak_factory_; | 
| +}; | 
| + | 
| +}  // namespace content | 
| + | 
| +#endif  // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_SERVICE_IMPL_H_ | 
|  |