Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: ppapi/proxy/flash_resource.h

Issue 11415140: Refactor 3 PPB_Flash functions to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 PPAPI_PROXY_FLASH_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FLASH_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_RESOURCE_H_ 6 #define PPAPI_PROXY_FLASH_RESOURCE_H_
7 7
8 #include "ppapi/proxy/connection.h" 8 #include "ppapi/proxy/connection.h"
victorhsieh 2012/11/28 07:09:50 I don't see every header includes those common pp-
raymes 2012/11/29 00:08:08 Thanks. Yeh we do a bad job of including all thsee
9 #include "ppapi/proxy/plugin_resource.h" 9 #include "ppapi/proxy/plugin_resource.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
11 #include "ppapi/thunk/ppb_flash_functions_api.h" 11 #include "ppapi/thunk/ppb_flash_functions_api.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 namespace proxy { 14 namespace proxy {
15 15
16 class PPAPI_PROXY_EXPORT FlashResource 16 class PPAPI_PROXY_EXPORT FlashResource
17 : public PluginResource, 17 : public PluginResource,
18 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) { 18 public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) {
19 public: 19 public:
20 FlashResource(Connection connection, PP_Instance instance); 20 FlashResource(Connection connection, PP_Instance instance);
21 virtual ~FlashResource(); 21 virtual ~FlashResource();
22 22
23 // Resource overrides. 23 // Resource override.
24 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE; 24 virtual thunk::PPB_Flash_Functions_API* AsPPB_Flash_Functions_API() OVERRIDE;
25 25
26 // PPB_Flash_Functions_API implementation.
27 virtual PP_Var GetProxyForURL(PP_Instance instance,
28 const std::string& url) OVERRIDE;
29 virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
30 virtual PP_Bool SetCrashData(PP_Instance instance,
31 PP_FlashCrashKey key,
32 PP_Var value) OVERRIDE;
26 private: 33 private:
27 DISALLOW_COPY_AND_ASSIGN(FlashResource); 34 DISALLOW_COPY_AND_ASSIGN(FlashResource);
28 }; 35 };
29 36
30 } // namespace proxy 37 } // namespace proxy
31 } // namespace ppapi 38 } // namespace ppapi
32 39
33 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_ 40 #endif // PPAPI_PROXY_FLASH_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698