Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1236)

Side by Side Diff: chrome_frame/utils.cc

Issue 8552002: net: Move UnescapeRule into the net namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_layout_test.cc ('k') | net/base/escape.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_layout_test.cc ('k') | net/base/escape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698