| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // creation. | 66 // creation. |
| 67 void OnResourceCreated(int resource_id, HANDLE cookie); | 67 void OnResourceCreated(int resource_id, HANDLE cookie); |
| 68 | 68 |
| 69 void HandleURLRequest(const char *method, | 69 void HandleURLRequest(const char *method, |
| 70 bool is_javascript_url, | 70 bool is_javascript_url, |
| 71 const char* target, unsigned int len, | 71 const char* target, unsigned int len, |
| 72 const char* buf, bool is_file_data, | 72 const char* buf, bool is_file_data, |
| 73 bool notify, const char* url, | 73 bool notify, const char* url, |
| 74 void* notify_data, bool popups_allowed); | 74 void* notify_data, bool popups_allowed); |
| 75 | 75 |
| 76 void CancelDocumentLoad(); |
| 77 |
| 78 void InitiateHTTPRangeRequest(const char* url, |
| 79 const char* range_info, |
| 80 void* existing_stream, |
| 81 bool notify_needed, |
| 82 HANDLE notify_data); |
| 76 private: | 83 private: |
| 77 bool Send(IPC::Message* msg); | 84 bool Send(IPC::Message* msg); |
| 78 | 85 |
| 79 typedef base::hash_map<int, WebPluginResourceClient*> ResourceClientMap; | 86 typedef base::hash_map<int, WebPluginResourceClient*> ResourceClientMap; |
| 80 ResourceClientMap resource_clients_; | 87 ResourceClientMap resource_clients_; |
| 81 | 88 |
| 82 scoped_refptr<PluginChannel> channel_; | 89 scoped_refptr<PluginChannel> channel_; |
| 83 int route_id_; | 90 int route_id_; |
| 84 NPObject* window_npobject_; | 91 NPObject* window_npobject_; |
| 85 NPObject* plugin_element_; | 92 NPObject* plugin_element_; |
| 86 WebPluginDelegate* delegate_; | 93 WebPluginDelegate* delegate_; |
| 87 gfx::Rect damaged_rect_; | 94 gfx::Rect damaged_rect_; |
| 88 bool waiting_for_paint_; | 95 bool waiting_for_paint_; |
| 89 uint32 cp_browsing_context_; | 96 uint32 cp_browsing_context_; |
| 90 ScopedHandle modal_dialog_event_; | 97 ScopedHandle modal_dialog_event_; |
| 91 }; | 98 }; |
| 92 | 99 |
| 93 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 100 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |