| 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/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 lock_.Release(); | 498 lock_.Release(); |
| 499 } | 499 } |
| 500 | 500 |
| 501 entry->Release(); | 501 entry->Release(); |
| 502 | 502 |
| 503 return true; | 503 return true; |
| 504 } | 504 } |
| 505 | 505 |
| 506 static base::LazyInstance<ProxyFactory, | 506 static base::LazyInstance<ProxyFactory, |
| 507 base::LeakyLazyInstanceTraits<ProxyFactory> > | 507 base::LeakyLazyInstanceTraits<ProxyFactory> > |
| 508 g_proxy_factory(base::LINKER_INITIALIZED); | 508 g_proxy_factory = LINKER_ZERO_INITIALIZED; |
| 509 | 509 |
| 510 template <> struct RunnableMethodTraits<ChromeFrameAutomationClient> { | 510 template <> struct RunnableMethodTraits<ChromeFrameAutomationClient> { |
| 511 static void RetainCallee(ChromeFrameAutomationClient* obj) {} | 511 static void RetainCallee(ChromeFrameAutomationClient* obj) {} |
| 512 static void ReleaseCallee(ChromeFrameAutomationClient* obj) {} | 512 static void ReleaseCallee(ChromeFrameAutomationClient* obj) {} |
| 513 }; | 513 }; |
| 514 | 514 |
| 515 ChromeFrameAutomationClient::ChromeFrameAutomationClient() | 515 ChromeFrameAutomationClient::ChromeFrameAutomationClient() |
| 516 : chrome_frame_delegate_(NULL), | 516 : chrome_frame_delegate_(NULL), |
| 517 chrome_window_(NULL), | 517 chrome_window_(NULL), |
| 518 tab_window_(NULL), | 518 tab_window_(NULL), |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 const net::URLRequestStatus& status) { | 1266 const net::URLRequestStatus& status) { |
| 1267 automation_server_->Send(new AutomationMsg_RequestEnd( | 1267 automation_server_->Send(new AutomationMsg_RequestEnd( |
| 1268 tab_->handle(), request_id, status)); | 1268 tab_->handle(), request_id, status)); |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1272 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1272 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
| 1274 tab_->handle(), success, url, cookie_string, cookie_id)); | 1274 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1275 } | 1275 } |
| OLD | NEW |