OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_GLUE_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/task.h" | 14 #include "base/task.h" |
15 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
16 #include "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" |
19 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
20 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
21 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" |
22 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
23 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
24 #include "webkit/glue/plugins/webplugin.h" | 24 #include "webkit/plugins/npapi/webplugin.h" |
25 | 25 |
26 class WebViewDelegate; | 26 class WebViewDelegate; |
27 | 27 |
28 namespace WebKit { | 28 namespace WebKit { |
29 class WebDevToolsAgent; | 29 class WebDevToolsAgent; |
30 class WebFrame; | 30 class WebFrame; |
31 class WebPluginContainer; | 31 class WebPluginContainer; |
32 class WebURLResponse; | 32 class WebURLResponse; |
33 class WebURLLoader; | 33 class WebURLLoader; |
34 class WebURLRequest; | 34 class WebURLRequest; |
35 } | 35 } |
36 | 36 |
37 namespace webkit_glue { | 37 namespace webkit_glue { |
| 38 class MultipartResponseDelegate; |
| 39 } // namespace webkit_glue |
38 | 40 |
39 class MultipartResponseDelegate; | 41 namespace webkit { |
| 42 namespace npapi { |
| 43 |
40 class WebPluginDelegate; | 44 class WebPluginDelegate; |
41 class WebPluginPageDelegate; | 45 class WebPluginPageDelegate; |
42 | 46 |
43 // This is the WebKit side of the plugin implementation that forwards calls, | 47 // 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 | 48 // after changing out of WebCore types, to a delegate. The delegate may |
45 // be in a different process. | 49 // be in a different process. |
46 class WebPluginImpl : public WebPlugin, | 50 class WebPluginImpl : public WebPlugin, |
47 public WebKit::WebPlugin, | 51 public WebKit::WebPlugin, |
48 public WebKit::WebURLLoaderClient { | 52 public WebKit::WebURLLoaderClient { |
49 public: | 53 public: |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // Holds the list of argument names and values passed to the plugin. We keep | 322 // Holds the list of argument names and values passed to the plugin. We keep |
319 // these so that we can re-initialize the plugin if we need to. | 323 // these so that we can re-initialize the plugin if we need to. |
320 std::vector<std::string> arg_names_; | 324 std::vector<std::string> arg_names_; |
321 std::vector<std::string> arg_values_; | 325 std::vector<std::string> arg_values_; |
322 | 326 |
323 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 327 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
324 | 328 |
325 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 329 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
326 }; | 330 }; |
327 | 331 |
328 } // namespace webkit_glue | 332 } // namespace npapi |
| 333 } // namespace webkit |
329 | 334 |
330 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 335 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |