chrome/browser/ui: Remove use of MessageLoopProxy and deprecated MessageLoop APIs
[chromium-blink-merge.git] / ppapi / proxy / flash_fullscreen_resource.h
blobb193e303b47a189fe0bb0f165b9f6bb392b226f9
1 // Copyright (c) 2012 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.
5 #ifndef PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_
8 #include "ppapi/proxy/connection.h"
9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/thunk/ppb_flash_fullscreen_api.h"
12 namespace ppapi {
13 namespace proxy {
15 class FlashFullscreenResource
16 : public PluginResource,
17 public thunk::PPB_Flash_Fullscreen_API {
18 public:
19 FlashFullscreenResource(Connection connection,
20 PP_Instance instance);
21 ~FlashFullscreenResource() override;
23 // Resource overrides.
24 thunk::PPB_Flash_Fullscreen_API* AsPPB_Flash_Fullscreen_API() override;
26 // PPB_Flash_Fullscreen_API implementation.
27 PP_Bool IsFullscreen(PP_Instance instance) override;
28 PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) override;
29 void SetLocalIsFullscreen(PP_Instance instance,
30 PP_Bool is_fullscreen) override;
32 private:
33 PP_Bool is_fullscreen_;
35 DISALLOW_COPY_AND_ASSIGN(FlashFullscreenResource);
38 } // namespace proxy
39 } // namespace ppapi
41 #endif // PPAPI_PROXY_FLASH_FULLSCREEN_RESOURCE_H_