OLD | NEW |
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 CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ | 6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 int32_t OnDrawGlyphs(ppapi::host::HostMessageContext* host_context, | 52 int32_t OnDrawGlyphs(ppapi::host::HostMessageContext* host_context, |
53 ppapi::proxy::PPBFlash_DrawGlyphs_Params params); | 53 ppapi::proxy::PPBFlash_DrawGlyphs_Params params); |
54 int32_t OnNavigate(ppapi::host::HostMessageContext* host_context, | 54 int32_t OnNavigate(ppapi::host::HostMessageContext* host_context, |
55 const ppapi::URLRequestInfoData& data, | 55 const ppapi::URLRequestInfoData& data, |
56 const std::string& target, | 56 const std::string& target, |
57 bool from_user_action); | 57 bool from_user_action); |
58 int32_t OnIsRectTopmost(ppapi::host::HostMessageContext* host_context, | 58 int32_t OnIsRectTopmost(ppapi::host::HostMessageContext* host_context, |
59 const PP_Rect& rect); | 59 const PP_Rect& rect); |
60 int32_t OnInvokePrinting(ppapi::host::HostMessageContext* host_context); | 60 int32_t OnInvokePrinting(ppapi::host::HostMessageContext* host_context); |
61 | 61 |
62 base::WeakPtrFactory<PepperFlashRendererHost> weak_factory_; | |
63 // A stack of ReplyMessageContexts to track Navigate() calls which have not | 62 // A stack of ReplyMessageContexts to track Navigate() calls which have not |
64 // yet been replied to. | 63 // yet been replied to. |
65 std::vector<ppapi::host::ReplyMessageContext> navigate_replies_; | 64 std::vector<ppapi::host::ReplyMessageContext> navigate_replies_; |
66 | 65 |
67 content::RendererPpapiHost* host_; | 66 content::RendererPpapiHost* host_; |
| 67 base::WeakPtrFactory<PepperFlashRendererHost> weak_factory_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererHost); | 69 DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererHost); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace chrome | 72 } // namespace chrome |
73 | 73 |
74 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ | 74 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
OLD | NEW |