| OLD | NEW |
| 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 PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/process.h" | 15 #include "base/process.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "ppapi/c/dev/pp_print_settings_dev.h" |
| 17 #include "ppapi/c/dev/ppb_console_dev.h" | 18 #include "ppapi/c/dev/ppb_console_dev.h" |
| 18 #include "ppapi/c/pp_rect.h" | 19 #include "ppapi/c/pp_rect.h" |
| 19 #include "ppapi/c/pp_instance.h" | 20 #include "ppapi/c/pp_instance.h" |
| 20 #include "ppapi/proxy/dispatcher.h" | 21 #include "ppapi/proxy/dispatcher.h" |
| 21 #include "ppapi/shared_impl/ppapi_preferences.h" | 22 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 22 #include "ppapi/shared_impl/ppb_view_shared.h" | 23 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 23 #include "ppapi/shared_impl/tracked_callback.h" | 24 #include "ppapi/shared_impl/tracked_callback.h" |
| 24 | 25 |
| 25 namespace ppapi { | 26 namespace ppapi { |
| 26 | 27 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 struct InstanceData { | 41 struct InstanceData { |
| 41 InstanceData(); | 42 InstanceData(); |
| 42 ~InstanceData(); | 43 ~InstanceData(); |
| 43 | 44 |
| 44 ViewData view; | 45 ViewData view; |
| 45 | 46 |
| 46 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. | 47 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. |
| 47 | 48 |
| 48 // When non-NULL, indicates the callback to execute when mouse lock is lost. | 49 // When non-NULL, indicates the callback to execute when mouse lock is lost. |
| 49 scoped_refptr<TrackedCallback> mouse_lock_callback; | 50 scoped_refptr<TrackedCallback> mouse_lock_callback; |
| 51 |
| 52 // Pointer to the location for the result of |GetDefaultPrintSettings()|. |
| 53 PP_PrintSettings_Dev* default_print_settings; |
| 54 |
| 55 // When non-NULL, indicates the callback to execute when the default print |
| 56 // settings are available. |
| 57 scoped_refptr<TrackedCallback> default_print_settings_callback; |
| 50 }; | 58 }; |
| 51 | 59 |
| 52 class PPAPI_PROXY_EXPORT PluginDispatcher | 60 class PPAPI_PROXY_EXPORT PluginDispatcher |
| 53 : public Dispatcher, | 61 : public Dispatcher, |
| 54 public base::SupportsWeakPtr<PluginDispatcher> { | 62 public base::SupportsWeakPtr<PluginDispatcher> { |
| 55 public: | 63 public: |
| 56 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { | 64 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { |
| 57 public: | 65 public: |
| 58 // Returns the set used for globally uniquifying PP_Instances. This same | 66 // Returns the set used for globally uniquifying PP_Instances. This same |
| 59 // set must be returned for all channels. | 67 // set must be returned for all channels. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // incognito mode. | 181 // incognito mode. |
| 174 bool incognito_; | 182 bool incognito_; |
| 175 | 183 |
| 176 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 184 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
| 177 }; | 185 }; |
| 178 | 186 |
| 179 } // namespace proxy | 187 } // namespace proxy |
| 180 } // namespace ppapi | 188 } // namespace ppapi |
| 181 | 189 |
| 182 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 190 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| OLD | NEW |