| 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 13 #include "base/id_map.h" | 14 #include "base/id_map.h" |
| 14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 18 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 19 #include "content/public/renderer/render_view_observer.h" | 20 #include "content/public/renderer/render_view_observer.h" |
| 20 #include "content/renderer/mouse_lock_dispatcher.h" | 21 #include "content/renderer/mouse_lock_dispatcher.h" |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 const PP_NetAddress_Private& addr); | 433 const PP_NetAddress_Private& addr); |
| 433 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, | 434 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, |
| 434 PP_Resource socket_resource, | 435 PP_Resource socket_resource, |
| 435 uint32 socket_id, | 436 uint32 socket_id, |
| 436 int32_t status); | 437 int32_t status); |
| 437 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, | 438 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, |
| 438 uint32 socket_id, | 439 uint32 socket_id, |
| 439 uint32 accepted_socket_id, | 440 uint32 accepted_socket_id, |
| 440 const PP_NetAddress_Private& local_addr, | 441 const PP_NetAddress_Private& local_addr, |
| 441 const PP_NetAddress_Private& remote_addr); | 442 const PP_NetAddress_Private& remote_addr); |
| 442 void OnHostResolverResolveACK(uint32 plugin_dispatcher_id, | 443 void OnHostResolverResolveACK( |
| 443 uint32 host_resolver_id, | 444 uint32 plugin_dispatcher_id, |
| 444 bool succeeded, | 445 uint32 host_resolver_id, |
| 445 const std::string& canonical_name, | 446 bool succeeded, |
| 446 const ppapi::NetAddressList& net_address_list); | 447 const std::string& canonical_name, |
| 448 const std::vector<PP_NetAddress_Private>& net_address_list); |
| 447 | 449 |
| 448 CONTENT_EXPORT int GetRoutingID() const; | 450 CONTENT_EXPORT int GetRoutingID() const; |
| 449 | 451 |
| 450 typedef base::Callback<void (int /* request_id */, | 452 typedef base::Callback<void (int /* request_id */, |
| 451 bool /* succeeded */, | 453 bool /* succeeded */, |
| 452 const std::string& /* label */)> | 454 const std::string& /* label */)> |
| 453 OpenDeviceCallback; | 455 OpenDeviceCallback; |
| 454 | 456 |
| 455 // Opens the specified device. The request ID passed into the callback will be | 457 // Opens the specified device. The request ID passed into the callback will be |
| 456 // the same as the return value. If successful, the label passed into the | 458 // the same as the return value. If successful, the label passed into the |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 530 |
| 529 scoped_ptr<PepperDeviceEnumerationEventHandler> | 531 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 530 device_enumeration_event_handler_; | 532 device_enumeration_event_handler_; |
| 531 | 533 |
| 532 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 534 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 533 }; | 535 }; |
| 534 | 536 |
| 535 } // namespace content | 537 } // namespace content |
| 536 | 538 |
| 537 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 539 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |