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

Side by Side Diff: storage/common/database/database_identifier.cc

Issue 524983002: Move fileapi-related files from webkit/common/ to storage/common/ and set up redirect headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix header guards, add OWNERS Created 6 years, 3 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "webkit/common/database/database_identifier.h" 5 #include "webkit/common/database/database_identifier.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "url/url_canon.h" 9 #include "url/url_canon.h"
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 if (is_file_) 136 if (is_file_)
137 return GURL("file:///"); 137 return GURL("file:///");
138 if (is_unique_) 138 if (is_unique_)
139 return GURL(); 139 return GURL();
140 if (port_ == 0) 140 if (port_ == 0)
141 return GURL(scheme_ + "://" + hostname_); 141 return GURL(scheme_ + "://" + hostname_);
142 return GURL(scheme_ + "://" + hostname_ + ":" + base::IntToString(port_)); 142 return GURL(scheme_ + "://" + hostname_ + ":" + base::IntToString(port_));
143 } 143 }
144 144
145 } // namespace storage 145 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698