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

Side by Side Diff: webkit/plugins/npapi/webplugin_impl.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_delegate_impl.h ('k') | webkit/plugins/plugin_constants.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_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 #include "webkit/plugins/npapi/webplugin.h" 23 #include "webkit/plugins/npapi/webplugin.h"
24 #include "webkit/plugins/webkit_plugins_export.h"
24 25
25 namespace WebKit { 26 namespace WebKit {
26 class WebFrame; 27 class WebFrame;
27 class WebPluginContainer; 28 class WebPluginContainer;
28 class WebURLResponse; 29 class WebURLResponse;
29 class WebURLLoader; 30 class WebURLLoader;
30 class WebURLRequest; 31 class WebURLRequest;
31 } 32 }
32 33
33 namespace webkit_glue { 34 namespace webkit_glue {
34 class MultipartResponseDelegate; 35 class MultipartResponseDelegate;
35 } // namespace webkit_glue 36 } // namespace webkit_glue
36 37
37 namespace webkit { 38 namespace webkit {
38 namespace npapi { 39 namespace npapi {
39 40
40 class WebPluginDelegate; 41 class WebPluginDelegate;
41 class WebPluginPageDelegate; 42 class WebPluginPageDelegate;
42 43
43 // This is the WebKit side of the plugin implementation that forwards calls, 44 // This is the WebKit side of the plugin implementation that forwards calls,
44 // after changing out of WebCore types, to a delegate. The delegate may 45 // after changing out of WebCore types, to a delegate. The delegate may
45 // be in a different process. 46 // be in a different process.
46 class WebPluginImpl : public WebPlugin, 47 class WEBKIT_PLUGINS_EXPORT WebPluginImpl :
47 public WebKit::WebPlugin, 48 NON_EXPORTED_BASE(public WebPlugin),
48 public WebKit::WebURLLoaderClient { 49 NON_EXPORTED_BASE(public WebKit::WebPlugin),
50 NON_EXPORTED_BASE(public WebKit::WebURLLoaderClient) {
49 public: 51 public:
50 WebPluginImpl( 52 WebPluginImpl(
51 WebKit::WebFrame* frame, 53 WebKit::WebFrame* frame,
52 const WebKit::WebPluginParams& params, 54 const WebKit::WebPluginParams& params,
53 const FilePath& file_path, 55 const FilePath& file_path,
54 const base::WeakPtr<WebPluginPageDelegate>& page_delegate); 56 const base::WeakPtr<WebPluginPageDelegate>& page_delegate);
55 virtual ~WebPluginImpl(); 57 virtual ~WebPluginImpl();
56 58
57 // Helper function for sorting post data. 59 // Helper function for sorting post data.
58 static bool SetPostData(WebKit::WebURLRequest* request, 60 static bool SetPostData(WebKit::WebURLRequest* request,
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 314
313 base::WeakPtrFactory<WebPluginImpl> weak_factory_; 315 base::WeakPtrFactory<WebPluginImpl> weak_factory_;
314 316
315 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 317 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
316 }; 318 };
317 319
318 } // namespace npapi 320 } // namespace npapi
319 } // namespace webkit 321 } // namespace webkit
320 322
321 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ 323 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl.h ('k') | webkit/plugins/plugin_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698