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

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

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/webkitplatformsupport_impl.h ('k') | no next file » | 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 WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 8 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 9 #define WEBKIT_PLUGINS_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 "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "third_party/npapi/bindings/npapi.h" 20 #include "third_party/npapi/bindings/npapi.h"
21 #include "third_party/npapi/bindings/nphostapi.h" 21 #include "third_party/npapi/bindings/nphostapi.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
25 25
26 namespace base {
26 class MessageLoop; 27 class MessageLoop;
28 }
27 29
28 namespace webkit { 30 namespace webkit {
29 namespace npapi { 31 namespace npapi {
30 32
31 class PluginLib; 33 class PluginLib;
32 class PluginHost; 34 class PluginHost;
33 class PluginStream; 35 class PluginStream;
34 class PluginStreamUrl; 36 class PluginStreamUrl;
35 class WebPlugin; 37 class WebPlugin;
36 class WebPluginResourceClient; 38 class WebPluginResourceClient;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 GURL get_url_; 299 GURL get_url_;
298 intptr_t get_notify_data_; 300 intptr_t get_notify_data_;
299 bool use_mozilla_user_agent_; 301 bool use_mozilla_user_agent_;
300 #if defined(OS_MACOSX) 302 #if defined(OS_MACOSX)
301 NPDrawingModel drawing_model_; 303 NPDrawingModel drawing_model_;
302 NPEventModel event_model_; 304 NPEventModel event_model_;
303 gfx::Point plugin_origin_; 305 gfx::Point plugin_origin_;
304 gfx::Rect containing_window_frame_; 306 gfx::Rect containing_window_frame_;
305 NPCocoaEvent* currently_handled_event_; // weak 307 NPCocoaEvent* currently_handled_event_; // weak
306 #endif 308 #endif
307 MessageLoop* message_loop_; 309 base::MessageLoop* message_loop_;
308 scoped_refptr<PluginStreamUrl> plugin_data_stream_; 310 scoped_refptr<PluginStreamUrl> plugin_data_stream_;
309 311
310 // This flag if true indicates that the plugin data would be passed from 312 // This flag if true indicates that the plugin data would be passed from
311 // webkit. if false indicates that the plugin should download the data. 313 // webkit. if false indicates that the plugin should download the data.
312 bool load_manually_; 314 bool load_manually_;
313 315
314 // Stack indicating if popups are to be enabled for the outgoing 316 // Stack indicating if popups are to be enabled for the outgoing
315 // NPN_GetURL/NPN_GetURLNotify calls. 317 // NPN_GetURL/NPN_GetURLNotify calls.
316 std::stack<bool> popups_enabled_stack_; 318 std::stack<bool> popups_enabled_stack_;
317 319
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 private: 365 private:
364 scoped_refptr<PluginInstance> instance_; 366 scoped_refptr<PluginInstance> instance_;
365 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 367 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
366 }; 368 };
367 #endif 369 #endif
368 370
369 } // namespace npapi 371 } // namespace npapi
370 } // namespace webkit 372 } // namespace webkit
371 373
372 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 374 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698