| 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_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ | 5 #ifndef CHROME_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ |
| 6 #define CHROME_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ | 6 #define CHROME_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/atomic_sequence_num.h" | 8 #include "base/atomic_sequence_num.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| 11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/lock.h" | 12 #include "base/lock.h" |
| 13 #include "base/waitable_event.h" | 13 #include "base/waitable_event.h" |
| 14 #include "chrome/common/ipc_maybe.h" | |
| 15 #include "chrome/common/modal_dialog_event.h" | 14 #include "chrome/common/modal_dialog_event.h" |
| 16 #include "chrome/common/transport_dib.h" | 15 #include "chrome/common/transport_dib.h" |
| 17 | 16 |
| 18 namespace IPC { | 17 namespace IPC { |
| 19 class Message; | 18 class Message; |
| 20 } | 19 } |
| 21 | 20 |
| 22 namespace base { | 21 namespace base { |
| 23 class TimeDelta; | 22 class TimeDelta; |
| 24 } | 23 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 123 |
| 125 void CreateNewWindow(int opener_id, | 124 void CreateNewWindow(int opener_id, |
| 126 bool user_gesture, | 125 bool user_gesture, |
| 127 base::ProcessHandle render_process, | 126 base::ProcessHandle render_process, |
| 128 int* route_id, | 127 int* route_id, |
| 129 ModalDialogEvent* modal_dialog_event); | 128 ModalDialogEvent* modal_dialog_event); |
| 130 void CreateNewWidget(int opener_id, bool activatable, int* route_id); | 129 void CreateNewWidget(int opener_id, bool activatable, int* route_id); |
| 131 | 130 |
| 132 #if defined(OS_MACOSX) | 131 #if defined(OS_MACOSX) |
| 133 // Called on the IO thread to handle the allocation of a transport DIB | 132 // Called on the IO thread to handle the allocation of a transport DIB |
| 134 void AllocTransportDIB(size_t size, IPC::Maybe<TransportDIB::Handle>* result); | 133 void AllocTransportDIB(size_t size, TransportDIB::Handle* result); |
| 135 | 134 |
| 136 // Called on the IO thread to handle the freeing of a transport DIB | 135 // Called on the IO thread to handle the freeing of a transport DIB |
| 137 void FreeTransportDIB(TransportDIB::Id dib_id); | 136 void FreeTransportDIB(TransportDIB::Id dib_id); |
| 138 #endif | 137 #endif |
| 139 | 138 |
| 140 private: | 139 private: |
| 141 // A class used to proxy a paint message. PaintMsgProxy objects are created | 140 // A class used to proxy a paint message. PaintMsgProxy objects are created |
| 142 // on the IO thread and destroyed on the UI thread. | 141 // on the IO thread and destroyed on the UI thread. |
| 143 class PaintMsgProxy; | 142 class PaintMsgProxy; |
| 144 friend class PaintMsgProxy; | 143 friend class PaintMsgProxy; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // The next routing id to use. | 188 // The next routing id to use. |
| 190 base::AtomicSequenceNumber next_routing_id_; | 189 base::AtomicSequenceNumber next_routing_id_; |
| 191 | 190 |
| 192 // Whether popup blocking is enabled or not. | 191 // Whether popup blocking is enabled or not. |
| 193 bool block_popups_; | 192 bool block_popups_; |
| 194 | 193 |
| 195 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 194 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
| 196 }; | 195 }; |
| 197 | 196 |
| 198 #endif // CHROME_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ | 197 #endif // CHROME_BROWSER_RENDEDER_HOST_RENDER_WIDGET_HELPER_H_ |
| OLD | NEW |