| 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 "chrome_frame/chrome_frame_automation.h" | 5 #include "chrome_frame/chrome_frame_automation.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 497 |
| 498 entry->Release(); | 498 entry->Release(); |
| 499 | 499 |
| 500 return true; | 500 return true; |
| 501 } | 501 } |
| 502 | 502 |
| 503 static base::LazyInstance<ProxyFactory, | 503 static base::LazyInstance<ProxyFactory, |
| 504 base::LeakyLazyInstanceTraits<ProxyFactory> > | 504 base::LeakyLazyInstanceTraits<ProxyFactory> > |
| 505 g_proxy_factory = LAZY_INSTANCE_INITIALIZER; | 505 g_proxy_factory = LAZY_INSTANCE_INITIALIZER; |
| 506 | 506 |
| 507 template <> struct RunnableMethodTraits<ChromeFrameAutomationClient> { | |
| 508 static void RetainCallee(ChromeFrameAutomationClient* obj) {} | |
| 509 static void ReleaseCallee(ChromeFrameAutomationClient* obj) {} | |
| 510 }; | |
| 511 | |
| 512 ChromeFrameAutomationClient::ChromeFrameAutomationClient() | 507 ChromeFrameAutomationClient::ChromeFrameAutomationClient() |
| 513 : chrome_frame_delegate_(NULL), | 508 : chrome_frame_delegate_(NULL), |
| 514 chrome_window_(NULL), | 509 chrome_window_(NULL), |
| 515 tab_window_(NULL), | 510 tab_window_(NULL), |
| 516 parent_window_(NULL), | 511 parent_window_(NULL), |
| 517 automation_server_(NULL), | 512 automation_server_(NULL), |
| 518 automation_server_id_(NULL), | 513 automation_server_id_(NULL), |
| 519 ui_thread_id_(NULL), | 514 ui_thread_id_(NULL), |
| 520 init_state_(UNINITIALIZED), | 515 init_state_(UNINITIALIZED), |
| 521 use_chrome_network_(false), | 516 use_chrome_network_(false), |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 const net::URLRequestStatus& status) { | 1265 const net::URLRequestStatus& status) { |
| 1271 automation_server_->Send(new AutomationMsg_RequestEnd( | 1266 automation_server_->Send(new AutomationMsg_RequestEnd( |
| 1272 tab_->handle(), request_id, status)); | 1267 tab_->handle(), request_id, status)); |
| 1273 } | 1268 } |
| 1274 | 1269 |
| 1275 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1270 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1276 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1271 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1277 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1272 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
| 1278 tab_->handle(), success, url, cookie_string, cookie_id)); | 1273 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1279 } | 1274 } |
| OLD | NEW |