| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 // Indicates that the given instance has been created. | 676 // Indicates that the given instance has been created. |
| 677 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); | 677 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); |
| 678 | 678 |
| 679 // Indicates that the given instance is being destroyed. This is called from | 679 // Indicates that the given instance is being destroyed. This is called from |
| 680 // the destructor, so it's important that the instance is not dereferenced | 680 // the destructor, so it's important that the instance is not dereferenced |
| 681 // from this call. | 681 // from this call. |
| 682 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); | 682 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); |
| 683 | 683 |
| 684 // Notification that the given plugin is focused or unfocused. | 684 // Notification that the given plugin is focused or unfocused. |
| 685 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); | 685 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); |
| 686 |
| 687 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); |
| 688 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); |
| 689 void OnSetPepperVolume(int32_t pp_instance, double volume); |
| 686 #endif // ENABLE_PLUGINS | 690 #endif // ENABLE_PLUGINS |
| 687 | 691 |
| 688 protected: | 692 protected: |
| 689 explicit RenderFrameImpl(const CreateParams& params); | 693 explicit RenderFrameImpl(const CreateParams& params); |
| 690 | 694 |
| 691 private: | 695 private: |
| 692 friend class RenderFrameImplTest; | 696 friend class RenderFrameImplTest; |
| 693 friend class RenderFrameObserver; | 697 friend class RenderFrameObserver; |
| 694 friend class RendererAccessibilityTest; | 698 friend class RendererAccessibilityTest; |
| 695 friend class TestRenderFrame; | 699 friend class TestRenderFrame; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 mojom::FrameHostPtr frame_host_; | 1291 mojom::FrameHostPtr frame_host_; |
| 1288 | 1292 |
| 1289 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1293 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1290 | 1294 |
| 1291 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1295 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1292 }; | 1296 }; |
| 1293 | 1297 |
| 1294 } // namespace content | 1298 } // namespace content |
| 1295 | 1299 |
| 1296 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1300 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |