| 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_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class Size; | 12 class Size; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 class Isolate; | 16 class Isolate; |
| 17 class Object; | 17 class Object; |
| 18 template<typename T> class Local; | 18 template<typename T> class Local; |
| 19 } // namespace v8 | 19 } // namespace v8 |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 class RenderFrame; | |
| 24 | |
| 25 // A delegate for BrowserPlugin which gets notified about the plugin load. | 23 // A delegate for BrowserPlugin which gets notified about the plugin load. |
| 26 // Implementations can provide additional steps necessary to change the load | 24 // Implementations can provide additional steps necessary to change the load |
| 27 // behavior of the plugin. | 25 // behavior of the plugin. |
| 28 class CONTENT_EXPORT BrowserPluginDelegate { | 26 class CONTENT_EXPORT BrowserPluginDelegate { |
| 29 public: | 27 public: |
| 30 // Called when the BrowserPlugin's geometry has been computed for the first | 28 // Called when the BrowserPlugin's geometry has been computed for the first |
| 31 // time. | 29 // time. |
| 32 virtual void Ready() {} | 30 virtual void Ready() {} |
| 33 | 31 |
| 34 // Called when plugin document has finished loading. | 32 // Called when plugin document has finished loading. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 53 // Returns a weak pointer to this delegate. | 51 // Returns a weak pointer to this delegate. |
| 54 virtual base::WeakPtr<BrowserPluginDelegate> GetWeakPtr() = 0; | 52 virtual base::WeakPtr<BrowserPluginDelegate> GetWeakPtr() = 0; |
| 55 | 53 |
| 56 protected: | 54 protected: |
| 57 virtual ~BrowserPluginDelegate() {} | 55 virtual ~BrowserPluginDelegate() {} |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace content | 58 } // namespace content |
| 61 | 59 |
| 62 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 60 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
| OLD | NEW |