OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/lazy_instance.h" | 5 #include "base/lazy_instance.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "chrome_frame/external_tab.h" | 7 #include "chrome_frame/external_tab.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "chrome/common/automation_messages.h" | 10 #include "chrome/common/automation_messages.h" |
11 #include "chrome_frame/chrome_frame_delegate.h" | 11 #include "chrome_frame/chrome_frame_delegate.h" |
12 #include "chrome_frame/utils.h" | 12 #include "chrome_frame/utils.h" |
13 | 13 |
14 DISABLE_RUNNABLE_METHOD_REFCOUNT(ExternalTabProxy); | 14 DISABLE_RUNNABLE_METHOD_REFCOUNT(ExternalTabProxy); |
15 DISABLE_RUNNABLE_METHOD_REFCOUNT(UIDelegate); | 15 DISABLE_RUNNABLE_METHOD_REFCOUNT(UIDelegate); |
16 | 16 |
17 namespace { | 17 namespace { |
18 static base::LazyInstance<ChromeProxyFactory> g_proxy_factory( | 18 static base::LazyInstance<ChromeProxyFactory> g_proxy_factory = |
19 base::LINKER_INITIALIZED); | 19 LAZY_INSTANCE_INITIALIZER; |
20 | 20 |
21 struct UserDataHolder : public SyncMessageContext { | 21 struct UserDataHolder : public SyncMessageContext { |
22 explicit UserDataHolder(void* p) : data(p) {} | 22 explicit UserDataHolder(void* p) : data(p) {} |
23 void* data; | 23 void* data; |
24 }; | 24 }; |
25 } | 25 } |
26 | 26 |
27 | 27 |
28 ExternalTabProxy::ExternalTabProxy() : state_(NONE), tab_(0), tab_wnd_(NULL), | 28 ExternalTabProxy::ExternalTabProxy() : state_(NONE), tab_(0), tab_wnd_(NULL), |
29 chrome_wnd_(NULL), proxy_factory_(g_proxy_factory.Pointer()), proxy_(NULL), | 29 chrome_wnd_(NULL), proxy_factory_(g_proxy_factory.Pointer()), proxy_(NULL), |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 } | 341 } |
342 | 342 |
343 void ExternalTabProxy::OnTabClosed() { | 343 void ExternalTabProxy::OnTabClosed() { |
344 // TODO(stoyan): | 344 // TODO(stoyan): |
345 } | 345 } |
346 | 346 |
347 void ExternalTabProxy::OnAttachTab( | 347 void ExternalTabProxy::OnAttachTab( |
348 const AttachExternalTabParams& attach_params) { | 348 const AttachExternalTabParams& attach_params) { |
349 // TODO(stoyan): | 349 // TODO(stoyan): |
350 } | 350 } |
OLD | NEW |