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

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

Issue 270183002: Move IsStringUTF8/ASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more minor nit Created 6 years, 7 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 | Annotate | Revision Log
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 "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 base::TaskRunner* task_runner, 805 base::TaskRunner* task_runner,
806 bool clean_journal) { 806 bool clean_journal) {
807 IDB_TRACE("IndexedDBBackingStore::Open"); 807 IDB_TRACE("IndexedDBBackingStore::Open");
808 DCHECK(!path_base.empty()); 808 DCHECK(!path_base.empty());
809 *data_loss = blink::WebIDBDataLossNone; 809 *data_loss = blink::WebIDBDataLossNone;
810 *data_loss_message = ""; 810 *data_loss_message = "";
811 *is_disk_full = false; 811 *is_disk_full = false;
812 812
813 scoped_ptr<LevelDBComparator> comparator(new Comparator()); 813 scoped_ptr<LevelDBComparator> comparator(new Comparator());
814 814
815 if (!IsStringASCII(path_base.AsUTF8Unsafe())) { 815 if (!base::IsStringASCII(path_base.AsUTF8Unsafe())) {
816 HistogramOpenStatus(INDEXED_DB_BACKING_STORE_OPEN_ATTEMPT_NON_ASCII, 816 HistogramOpenStatus(INDEXED_DB_BACKING_STORE_OPEN_ATTEMPT_NON_ASCII,
817 origin_url); 817 origin_url);
818 } 818 }
819 if (!base::CreateDirectory(path_base)) { 819 if (!base::CreateDirectory(path_base)) {
820 LOG(ERROR) << "Unable to create IndexedDB database path " 820 LOG(ERROR) << "Unable to create IndexedDB database path "
821 << path_base.AsUTF8Unsafe(); 821 << path_base.AsUTF8Unsafe();
822 HistogramOpenStatus(INDEXED_DB_BACKING_STORE_OPEN_FAILED_DIRECTORY, 822 HistogramOpenStatus(INDEXED_DB_BACKING_STORE_OPEN_FAILED_DIRECTORY,
823 origin_url); 823 origin_url);
824 return scoped_refptr<IndexedDBBackingStore>(); 824 return scoped_refptr<IndexedDBBackingStore>();
825 } 825 }
(...skipping 2707 matching lines...) Expand 10 before | Expand all | Expand 10 after
3533 const GURL& url, 3533 const GURL& url,
3534 int64_t key) 3534 int64_t key)
3535 : is_file_(false), url_(url), key_(key) {} 3535 : is_file_(false), url_(url), key_(key) {}
3536 3536
3537 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( 3537 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor(
3538 const FilePath& file_path, 3538 const FilePath& file_path,
3539 int64_t key) 3539 int64_t key)
3540 : is_file_(true), file_path_(file_path), key_(key) {} 3540 : is_file_(true), file_path_(file_path), key_(key) {}
3541 3541
3542 } // namespace content 3542 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest_manager.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698