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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 void HandleURLRequest(const char *method, | 75 void HandleURLRequest(const char *method, |
76 bool is_javascript_url, | 76 bool is_javascript_url, |
77 const char* target, unsigned int len, | 77 const char* target, unsigned int len, |
78 const char* buf, bool is_file_data, | 78 const char* buf, bool is_file_data, |
79 bool notify, const char* url, | 79 bool notify, const char* url, |
80 void* notify_data, bool popups_allowed); | 80 void* notify_data, bool popups_allowed); |
81 | 81 |
82 void UpdateGeometry(const gfx::Rect& window_rect, | 82 void UpdateGeometry(const gfx::Rect& window_rect, |
83 const gfx::Rect& clip_rect, | 83 const gfx::Rect& clip_rect, |
| 84 const std::vector<gfx::Rect>& cutout_rects, |
84 bool visible, | 85 bool visible, |
85 const SharedMemoryHandle& windowless_buffer, | 86 const SharedMemoryHandle& windowless_buffer, |
86 const SharedMemoryHandle& background_buffer); | 87 const SharedMemoryHandle& background_buffer); |
87 | 88 |
88 void CancelDocumentLoad(); | 89 void CancelDocumentLoad(); |
89 | 90 |
90 void InitiateHTTPRangeRequest(const char* url, | 91 void InitiateHTTPRangeRequest(const char* url, |
91 const char* range_info, | 92 const char* range_info, |
92 void* existing_stream, | 93 void* existing_stream, |
93 bool notify_needed, | 94 bool notify_needed, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 ScopedBitmap windowless_bitmap_; | 133 ScopedBitmap windowless_bitmap_; |
133 ScopedHDC windowless_hdc_; | 134 ScopedHDC windowless_hdc_; |
134 | 135 |
135 // These hold the bitmap of the background image. | 136 // These hold the bitmap of the background image. |
136 ScopedHandle background_shared_section_; | 137 ScopedHandle background_shared_section_; |
137 ScopedBitmap background_bitmap_; | 138 ScopedBitmap background_bitmap_; |
138 ScopedHDC background_hdc_; | 139 ScopedHDC background_hdc_; |
139 }; | 140 }; |
140 | 141 |
141 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 142 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
OLD | NEW |