OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ | 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ |
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ | 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/screen_orientation_dispatcher_host.h" | 9 #include "content/public/browser/screen_orientation_dispatcher_host.h" |
10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // Returns a RenderFrameHost if the request_id is still valid and the | 48 // Returns a RenderFrameHost if the request_id is still valid and the |
49 // associated RenderFrameHost still exists. Returns NULL otherwise. | 49 // associated RenderFrameHost still exists. Returns NULL otherwise. |
50 RenderFrameHost* GetRenderFrameHostForRequestID(int request_id); | 50 RenderFrameHost* GetRenderFrameHostForRequestID(int request_id); |
51 | 51 |
52 void ResetCurrentLock(); | 52 void ResetCurrentLock(); |
53 void NotifyLockError(int request_id, | 53 void NotifyLockError(int request_id, |
54 RenderFrameHost* render_frame_host, | 54 RenderFrameHost* render_frame_host, |
55 blink::WebLockOrientationError error); | 55 blink::WebLockOrientationError error); |
56 | 56 |
57 scoped_ptr<ScreenOrientationProvider> provider_; | 57 std::unique_ptr<ScreenOrientationProvider> provider_; |
58 | 58 |
59 struct LockInformation { | 59 struct LockInformation { |
60 LockInformation(int request_id, int process_id, int routing_id); | 60 LockInformation(int request_id, int process_id, int routing_id); |
61 int request_id; | 61 int request_id; |
62 int process_id; | 62 int process_id; |
63 int routing_id; | 63 int routing_id; |
64 }; | 64 }; |
65 // current_lock_ will be NULL if there are no current lock. | 65 // current_lock_ will be NULL if there are no current lock. |
66 LockInformation* current_lock_; | 66 LockInformation* current_lock_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHostImpl); | 68 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHostImpl); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST
_IMPL_H_ | 73 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST
_IMPL_H_ |
OLD | NEW |