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

Side by Side Diff: content/public/renderer/browser_plugin_delegate.h

Issue 1162053003: Move BrowserPluginDelegate's lifetime mgmt out of content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up for review. Created 5 years, 6 months 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
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 29 matching lines...) Expand all
40 // Called when plugin document receives data. 40 // Called when plugin document receives data.
41 virtual void DidReceiveData(const char* data, int data_length) {} 41 virtual void DidReceiveData(const char* data, int data_length) {}
42 42
43 // Sets the instance ID that idenfies the plugin within current render 43 // Sets the instance ID that idenfies the plugin within current render
44 // process. 44 // process.
45 virtual void SetElementInstanceID(int element_instance_id) {} 45 virtual void SetElementInstanceID(int element_instance_id) {}
46 46
47 // Called when the plugin resizes. 47 // Called when the plugin resizes.
48 virtual void DidResizeElement(const gfx::Size& new_size) {} 48 virtual void DidResizeElement(const gfx::Size& new_size) {}
49 49
50 // Called when the plugin is about to be destroyed.
51 virtual void WillDestroy() {}
52
50 // Return a scriptable object for the plugin. 53 // Return a scriptable object for the plugin.
51 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate); 54 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate);
52 }; 55 };
53 56
54 } // namespace content 57 } // namespace content
55 58
56 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 59 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698