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

Side by Side Diff: webkit/glue/plugins/pepper_webplugin_impl.h

Issue 2842036: Add support for HandleDocumentLoad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_webplugin_impl.cc » ('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) 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_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/weak_ptr.h" 11 #include "base/weak_ptr.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "gfx/rect.h" 14 #include "gfx/rect.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h"
16 16
17 namespace WebKit { 17 namespace WebKit {
18 struct WebPluginParams; 18 struct WebPluginParams;
19 } 19 }
20 20
21 namespace pepper { 21 namespace pepper {
22 22
23 class PluginDelegate; 23 class PluginDelegate;
24 class PluginInstance; 24 class PluginInstance;
25 class PluginModule; 25 class PluginModule;
26 class URLLoader;
26 27
27 class WebPluginImpl : public WebKit::WebPlugin { 28 class WebPluginImpl : public WebKit::WebPlugin {
28 public: 29 public:
29 WebPluginImpl(PluginModule* module, 30 WebPluginImpl(PluginModule* module,
30 const WebKit::WebPluginParams& params, 31 const WebKit::WebPluginParams& params,
31 const base::WeakPtr<PluginDelegate>& plugin_delegate); 32 const base::WeakPtr<PluginDelegate>& plugin_delegate);
32 33
33 private: 34 private:
34 friend class DeleteTask<WebPluginImpl>; 35 friend class DeleteTask<WebPluginImpl>;
35 36
(...skipping 26 matching lines...) Expand all
62 63
63 struct InitData { 64 struct InitData {
64 scoped_refptr<PluginModule> module; 65 scoped_refptr<PluginModule> module;
65 base::WeakPtr<PluginDelegate> delegate; 66 base::WeakPtr<PluginDelegate> delegate;
66 std::vector<std::string> arg_names; 67 std::vector<std::string> arg_names;
67 std::vector<std::string> arg_values; 68 std::vector<std::string> arg_values;
68 }; 69 };
69 70
70 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. 71 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization.
71 scoped_refptr<PluginInstance> instance_; 72 scoped_refptr<PluginInstance> instance_;
73 scoped_refptr<URLLoader> document_loader_;
72 gfx::Rect plugin_rect_; 74 gfx::Rect plugin_rect_;
73 75
74 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 76 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
75 }; 77 };
76 78
77 } // namespace pepper 79 } // namespace pepper
78 80
79 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ 81 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698