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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate.h

Issue 8741006: Add exports needed for glue to build as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r112585 Created 9 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
« no previous file with comments | « webkit/plugins/npapi/webplugin.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "third_party/npapi/bindings/npapi.h" 13 #include "third_party/npapi/bindings/npapi.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 #include "webkit/plugins/webkit_plugins_export.h"
16 17
17 class GURL; 18 class GURL;
18 struct NPObject; 19 struct NPObject;
19 20
20 namespace WebKit { 21 namespace WebKit {
21 class WebInputEvent; 22 class WebInputEvent;
22 struct WebCursorInfo; 23 struct WebCursorInfo;
23 } 24 }
24 25
25 namespace gfx { 26 namespace gfx {
26 class Rect; 27 class Rect;
27 } 28 }
28 29
29 namespace webkit { 30 namespace webkit {
30 namespace npapi { 31 namespace npapi {
31 32
32 class WebPlugin; 33 class WebPlugin;
33 class WebPluginResourceClient; 34 class WebPluginResourceClient;
34 35
35 // This is the interface that a plugin implementation needs to provide. 36 // This is the interface that a plugin implementation needs to provide.
36 class WebPluginDelegate { 37 class WEBKIT_PLUGINS_EXPORT WebPluginDelegate {
37 public: 38 public:
38 virtual ~WebPluginDelegate() {} 39 virtual ~WebPluginDelegate() {}
39 40
40 // Initializes the plugin implementation with the given (UTF8) arguments. 41 // Initializes the plugin implementation with the given (UTF8) arguments.
41 // Note that the lifetime of WebPlugin must be longer than this delegate. 42 // Note that the lifetime of WebPlugin must be longer than this delegate.
42 // If this function returns false the plugin isn't started and shouldn't be 43 // If this function returns false the plugin isn't started and shouldn't be
43 // called again. If this method succeeds, then the WebPlugin is valid until 44 // called again. If this method succeeds, then the WebPlugin is valid until
44 // PluginDestroyed is called. 45 // PluginDestroyed is called.
45 // The load_manually parameter if true indicates that the plugin data would 46 // The load_manually parameter if true indicates that the plugin data would
46 // be passed from webkit. if false indicates that the plugin should download 47 // be passed from webkit. if false indicates that the plugin should download
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Creates a WebPluginResourceClient instance for an existing stream that is 127 // Creates a WebPluginResourceClient instance for an existing stream that is
127 // has become seekable. 128 // has become seekable.
128 virtual WebPluginResourceClient* CreateSeekableResourceClient( 129 virtual WebPluginResourceClient* CreateSeekableResourceClient(
129 unsigned long resource_id, int range_request_id) = 0; 130 unsigned long resource_id, int range_request_id) = 0;
130 }; 131 };
131 132
132 } // namespace npapi 133 } // namespace npapi
133 } // namespace webkit 134 } // namespace webkit
134 135
135 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ 136 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin.h ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698