OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 entry); | 493 entry); |
494 proxies_.container().erase(it); | 494 proxies_.container().erase(it); |
495 lock_.Release(); | 495 lock_.Release(); |
496 } | 496 } |
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>::Leaky |
504 base::LeakyLazyInstanceTraits<ProxyFactory> > | |
505 g_proxy_factory = LAZY_INSTANCE_INITIALIZER; | 504 g_proxy_factory = LAZY_INSTANCE_INITIALIZER; |
506 | 505 |
507 ChromeFrameAutomationClient::ChromeFrameAutomationClient() | 506 ChromeFrameAutomationClient::ChromeFrameAutomationClient() |
508 : chrome_frame_delegate_(NULL), | 507 : chrome_frame_delegate_(NULL), |
509 chrome_window_(NULL), | 508 chrome_window_(NULL), |
510 tab_window_(NULL), | 509 tab_window_(NULL), |
511 parent_window_(NULL), | 510 parent_window_(NULL), |
512 automation_server_(NULL), | 511 automation_server_(NULL), |
513 automation_server_id_(NULL), | 512 automation_server_id_(NULL), |
514 ui_thread_id_(NULL), | 513 ui_thread_id_(NULL), |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 const net::URLRequestStatus& status) { | 1266 const net::URLRequestStatus& status) { |
1268 automation_server_->Send(new AutomationMsg_RequestEnd( | 1267 automation_server_->Send(new AutomationMsg_RequestEnd( |
1269 tab_->handle(), request_id, status)); | 1268 tab_->handle(), request_id, status)); |
1270 } | 1269 } |
1271 | 1270 |
1272 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
1273 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1272 const GURL& url, const std::string& cookie_string, int cookie_id) { |
1274 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
1275 tab_->handle(), success, url, cookie_string, cookie_id)); | 1274 tab_->handle(), success, url, cookie_string, cookie_id)); |
1276 } | 1275 } |
OLD | NEW |