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

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: sync to #424762 Created 4 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/indexed_db/indexed_db_backing_store.h" 5 #include "content/browser/indexed_db/indexed_db_backing_store.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 bool MakeIDBBlobDirectory(const FilePath& path_base, 84 bool MakeIDBBlobDirectory(const FilePath& path_base,
85 int64_t database_id, 85 int64_t database_id,
86 int64_t key) { 86 int64_t key) {
87 FilePath path = GetBlobDirectoryNameForKey(path_base, database_id, key); 87 FilePath path = GetBlobDirectoryNameForKey(path_base, database_id, key);
88 return base::CreateDirectory(path); 88 return base::CreateDirectory(path);
89 } 89 }
90 90
91 static std::string ComputeOriginIdentifier(const Origin& origin) { 91 static std::string ComputeOriginIdentifier(const Origin& origin) {
92 return storage::GetIdentifierFromOrigin(GURL(origin.Serialize())) + "@1"; 92 return storage::GetIdentifierFromOrigin(origin.GetURL()) + "@1";
93 } 93 }
94 94
95 static FilePath ComputeCorruptionFileName(const Origin& origin) { 95 static FilePath ComputeCorruptionFileName(const Origin& origin) {
96 return IndexedDBContextImpl::GetLevelDBFileName(origin).Append( 96 return IndexedDBContextImpl::GetLevelDBFileName(origin).Append(
97 FILE_PATH_LITERAL("corruption_info.json")); 97 FILE_PATH_LITERAL("corruption_info.json"));
98 } 98 }
99 99
100 } // namespace 100 } // namespace
101 101
102 static const int64_t kKeyGeneratorInitialNumber = 102 static const int64_t kKeyGeneratorInitialNumber =
(...skipping 4427 matching lines...) Expand 10 before | Expand all | Expand 10 after
4530 4530
4531 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( 4531 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor(
4532 const WriteDescriptor& other) = default; 4532 const WriteDescriptor& other) = default;
4533 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = 4533 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() =
4534 default; 4534 default;
4535 IndexedDBBackingStore::Transaction::WriteDescriptor& 4535 IndexedDBBackingStore::Transaction::WriteDescriptor&
4536 IndexedDBBackingStore::Transaction::WriteDescriptor:: 4536 IndexedDBBackingStore::Transaction::WriteDescriptor::
4537 operator=(const WriteDescriptor& other) = default; 4537 operator=(const WriteDescriptor& other) = default;
4538 4538
4539 } // namespace content 4539 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_message_filter.cc ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698