| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 | 1035 |
| 1036 return is_valid; | 1036 return is_valid; |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 void ChromeFrameAutomationClient::CleanupRequests() { | 1039 void ChromeFrameAutomationClient::CleanupRequests() { |
| 1040 while (request_map_.size()) { | 1040 while (request_map_.size()) { |
| 1041 PluginUrlRequest* request = request_map_.begin()->second; | 1041 PluginUrlRequest* request = request_map_.begin()->second; |
| 1042 if (request) { | 1042 if (request) { |
| 1043 int request_id = request->id(); | 1043 int request_id = request->id(); |
| 1044 request->Stop(); | 1044 request->Stop(); |
| 1045 DCHECK(request_map_.end() == request_map_.find(request_id)); | |
| 1046 } | 1045 } |
| 1047 } | 1046 } |
| 1048 | 1047 |
| 1049 DCHECK(request_map_.empty()); | 1048 DCHECK(request_map_.empty()); |
| 1050 request_map_.clear(); | 1049 request_map_.clear(); |
| 1051 } | 1050 } |
| 1052 | 1051 |
| 1053 bool ChromeFrameAutomationClient::Reinitialize( | 1052 bool ChromeFrameAutomationClient::Reinitialize( |
| 1054 ChromeFrameDelegate* delegate) { | 1053 ChromeFrameDelegate* delegate) { |
| 1055 if (!tab_.get() || !::IsWindow(chrome_window_)) { | 1054 if (!tab_.get() || !::IsWindow(chrome_window_)) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1082 if (font_size < SMALLEST_FONT || | 1081 if (font_size < SMALLEST_FONT || |
| 1083 font_size > LARGEST_FONT) { | 1082 font_size > LARGEST_FONT) { |
| 1084 NOTREACHED() << "Invalid font size specified : " | 1083 NOTREACHED() << "Invalid font size specified : " |
| 1085 << font_size; | 1084 << font_size; |
| 1086 return; | 1085 return; |
| 1087 } | 1086 } |
| 1088 | 1087 |
| 1089 Send(new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size)); | 1088 Send(new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size)); |
| 1090 } | 1089 } |
| 1091 | 1090 |
| OLD | NEW |