OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // @file | 5 // @file |
6 // Broke Postman implementation. | 6 // Broke Postman implementation. |
7 | 7 |
8 #ifndef CEEE_IE_BROKER_CHROME_POSTMAN_H_ | 8 #ifndef CEEE_IE_BROKER_CHROME_POSTMAN_H_ |
9 #define CEEE_IE_BROKER_CHROME_POSTMAN_H_ | 9 #define CEEE_IE_BROKER_CHROME_POSTMAN_H_ |
10 | 10 |
11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
12 #include "base/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "ceee/ie/common/chrome_frame_host.h" | 13 #include "ceee/ie/common/chrome_frame_host.h" |
14 | 14 |
15 #include "broker_lib.h" // NOLINT | 15 #include "broker_lib.h" // NOLINT |
16 | 16 |
17 // The Broker Postman singleton object wrapping the ChromeFrameHost | 17 // The Broker Postman singleton object wrapping the ChromeFrameHost |
18 // class so that it can receive API invocation from Chrome Frame, and also | 18 // class so that it can receive API invocation from Chrome Frame, and also |
19 // dispatch response and events to it. | 19 // dispatch response and events to it. |
20 // | 20 // |
21 // Since Chrome Frame must be access from a Single Thread Apartment, this | 21 // Since Chrome Frame must be access from a Single Thread Apartment, this |
22 // object must only call it in an STA, so the PostMessage method must post a | 22 // object must only call it in an STA, so the PostMessage method must post a |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 ApiInvocationWorkerThread api_worker_thread_; | 127 ApiInvocationWorkerThread api_worker_thread_; |
128 | 128 |
129 // The number of times we tried to launch ChromeFrame. | 129 // The number of times we tried to launch ChromeFrame. |
130 int frame_reset_count_; | 130 int frame_reset_count_; |
131 | 131 |
132 // "in the end, there should be only one!" :-) | 132 // "in the end, there should be only one!" :-) |
133 static ChromePostman* single_instance_; | 133 static ChromePostman* single_instance_; |
134 }; | 134 }; |
135 | 135 |
136 #endif // CEEE_IE_BROKER_CHROME_POSTMAN_H_ | 136 #endif // CEEE_IE_BROKER_CHROME_POSTMAN_H_ |
OLD | NEW |