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

Side by Side Diff: content/child/npapi/plugin_instance.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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
« no previous file with comments | « content/child/npapi/np_channel_base.cc ('k') | content/child/npapi/plugin_instance.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // TODO: Need to deal with NPAPI's NPSavedData. 5 // TODO: Need to deal with NPAPI's NPSavedData.
6 // I haven't seen plugins use it yet. 6 // I haven't seen plugins use it yet.
7 7
8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
10 10
11 #include <map> 11 #include <map>
12 #include <stack> 12 #include <stack>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "third_party/npapi/bindings/npapi.h" 19 #include "third_party/npapi/bindings/npapi.h"
20 #include "third_party/npapi/bindings/nphostapi.h" 20 #include "third_party/npapi/bindings/nphostapi.h"
21 #include "ui/gfx/geometry/point.h" 21 #include "ui/gfx/geometry/point.h"
22 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
23 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace base { 26 namespace base {
27 class MessageLoop; 27 class SingleThreadTaskRunner;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 class PluginLib; 32 class PluginLib;
33 class PluginHost; 33 class PluginHost;
34 class PluginStream; 34 class PluginStream;
35 class PluginStreamUrl; 35 class PluginStreamUrl;
36 class WebPlugin; 36 class WebPlugin;
37 class WebPluginResourceClient; 37 class WebPluginResourceClient;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 GURL get_url_; 298 GURL get_url_;
299 intptr_t get_notify_data_; 299 intptr_t get_notify_data_;
300 bool use_mozilla_user_agent_; 300 bool use_mozilla_user_agent_;
301 #if defined(OS_MACOSX) 301 #if defined(OS_MACOSX)
302 NPDrawingModel drawing_model_; 302 NPDrawingModel drawing_model_;
303 NPEventModel event_model_; 303 NPEventModel event_model_;
304 gfx::Point plugin_origin_; 304 gfx::Point plugin_origin_;
305 gfx::Rect containing_window_frame_; 305 gfx::Rect containing_window_frame_;
306 NPCocoaEvent* currently_handled_event_; // weak 306 NPCocoaEvent* currently_handled_event_; // weak
307 #endif 307 #endif
308 base::MessageLoop* message_loop_; 308 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
309 scoped_refptr<PluginStreamUrl> plugin_data_stream_; 309 scoped_refptr<PluginStreamUrl> plugin_data_stream_;
310 310
311 // This flag if true indicates that the plugin data would be passed from 311 // This flag if true indicates that the plugin data would be passed from
312 // webkit. if false indicates that the plugin should download the data. 312 // webkit. if false indicates that the plugin should download the data.
313 bool load_manually_; 313 bool load_manually_;
314 314
315 // Stack indicating if popups are to be enabled for the outgoing 315 // Stack indicating if popups are to be enabled for the outgoing
316 // NPN_GetURL/NPN_GetURLNotify calls. 316 // NPN_GetURL/NPN_GetURLNotify calls.
317 std::stack<bool> popups_enabled_stack_; 317 std::stack<bool> popups_enabled_stack_;
318 318
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 private: 364 private:
365 scoped_refptr<PluginInstance> instance_; 365 scoped_refptr<PluginInstance> instance_;
366 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 366 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
367 }; 367 };
368 #endif 368 #endif
369 369
370 } // namespace content 370 } // namespace content
371 371
372 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 372 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/child/npapi/np_channel_base.cc ('k') | content/child/npapi/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698