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/utils.h" | 5 #include "chrome_frame/utils.h" |
6 | 6 |
7 #include <atlsafe.h> | 7 #include <atlsafe.h> |
8 #include <atlsecurity.h> | 8 #include <atlsecurity.h> |
9 #include <htiframe.h> | 9 #include <htiframe.h> |
10 #include <mshtml.h> | 10 #include <mshtml.h> |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 if (tokenizer.GetNext()) { | 1417 if (tokenizer.GetNext()) { |
1418 dimensions_.set_height(atoi(tokenizer.token().c_str())); | 1418 dimensions_.set_height(atoi(tokenizer.token().c_str())); |
1419 } else { | 1419 } else { |
1420 return false; | 1420 return false; |
1421 } | 1421 } |
1422 | 1422 |
1423 if (tokenizer.GetNext()) { | 1423 if (tokenizer.GetNext()) { |
1424 profile_name_ = tokenizer.token(); | 1424 profile_name_ = tokenizer.token(); |
1425 // Escape out special characters like %20, etc. | 1425 // Escape out special characters like %20, etc. |
1426 profile_name_ = net::UnescapeURLComponent(profile_name_, | 1426 profile_name_ = net::UnescapeURLComponent(profile_name_, |
1427 UnescapeRule::SPACES | UnescapeRule::URL_SPECIAL_CHARS); | 1427 net::UnescapeRule::SPACES | net::UnescapeRule::URL_SPECIAL_CHARS); |
1428 } else { | 1428 } else { |
1429 return false; | 1429 return false; |
1430 } | 1430 } |
1431 | 1431 |
1432 return true; | 1432 return true; |
1433 } | 1433 } |
1434 | 1434 |
1435 void ChromeFrameUrl::Reset() { | 1435 void ChromeFrameUrl::Reset() { |
1436 attach_to_external_tab_ = false; | 1436 attach_to_external_tab_ = false; |
1437 is_chrome_protocol_ = false; | 1437 is_chrome_protocol_ = false; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 ret = InternetSetOption(NULL, connection_options[option_index], | 1633 ret = InternetSetOption(NULL, connection_options[option_index], |
1634 &connections, connection_value_size); | 1634 &connections, connection_value_size); |
1635 if (!ret) { | 1635 if (!ret) { |
1636 return false; | 1636 return false; |
1637 } | 1637 } |
1638 } | 1638 } |
1639 wininet_connection_count_updated = true; | 1639 wininet_connection_count_updated = true; |
1640 return true; | 1640 return true; |
1641 } | 1641 } |
1642 | 1642 |
OLD | NEW |