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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 290553004: PPAPI: Refactor MessageChannel to prep for sync postMessae (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move NaClHelper in to nacl namespace Created 6 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 | Annotate | Revision Log
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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 namespace gfx { 84 namespace gfx {
85 class Range; 85 class Range;
86 } 86 }
87 87
88 namespace ppapi { 88 namespace ppapi {
89 class Resource; 89 class Resource;
90 struct InputEventData; 90 struct InputEventData;
91 struct PPP_Instance_Combined; 91 struct PPP_Instance_Combined;
92 class ScopedPPVar;
92 } 93 }
93 94
94 namespace v8 { 95 namespace v8 {
95 class Isolate; 96 class Isolate;
96 } 97 }
97 98
98 namespace content { 99 namespace content {
99 100
100 class ContentDecryptorDelegate; 101 class ContentDecryptorDelegate;
101 class FullscreenContainer; 102 class FullscreenContainer;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 bool flash_fullscreen() const { return flash_fullscreen_; } 291 bool flash_fullscreen() const { return flash_fullscreen_; }
291 292
292 // Switches between fullscreen and normal mode. The transition is 293 // Switches between fullscreen and normal mode. The transition is
293 // asynchronous. WebKit will trigger corresponding VewChanged calls. 294 // asynchronous. WebKit will trigger corresponding VewChanged calls.
294 // Returns true on success, false on failure (e.g. trying to enter fullscreen 295 // Returns true on success, false on failure (e.g. trying to enter fullscreen
295 // when not processing a user gesture or trying to set fullscreen when 296 // when not processing a user gesture or trying to set fullscreen when
296 // already in fullscreen mode). 297 // already in fullscreen mode).
297 bool SetFullscreen(bool fullscreen); 298 bool SetFullscreen(bool fullscreen);
298 299
299 // Implementation of PPP_Messaging. 300 // Send the message on to the plugin.
300 void HandleMessage(PP_Var message); 301 void HandleMessage(ppapi::ScopedPPVar message);
301 302
302 // Returns true if the plugin is processing a user gesture. 303 // Returns true if the plugin is processing a user gesture.
303 bool IsProcessingUserGesture(); 304 bool IsProcessingUserGesture();
304 305
305 // Returns the user gesture token to use for creating a WebScopedUserGesture, 306 // Returns the user gesture token to use for creating a WebScopedUserGesture,
306 // if IsProcessingUserGesture returned true. 307 // if IsProcessingUserGesture returned true.
307 blink::WebUserGestureToken CurrentUserGestureToken(); 308 blink::WebUserGestureToken CurrentUserGestureToken();
308 309
309 // A mouse lock request was pending and this reports success or failure. 310 // A mouse lock request was pending and this reports success or failure.
310 void OnLockMouseACK(bool succeeded); 311 void OnLockMouseACK(bool succeeded);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 872 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
872 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 873 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
873 874
874 friend class PpapiPluginInstanceTest; 875 friend class PpapiPluginInstanceTest;
875 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 876 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
876 }; 877 };
877 878
878 } // namespace content 879 } // namespace content
879 880
880 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 881 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_renderer_ppapi_host.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698