OLD | NEW |
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 "content/browser/media/webrtc_identity_store_backend.h" | 5 #include "content/browser/media/webrtc_identity_store_backend.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "sql/error_delegate_util.h" | 13 #include "sql/error_delegate_util.h" |
14 #include "sql/statement.h" | 14 #include "sql/statement.h" |
15 #include "sql/transaction.h" | 15 #include "sql/transaction.h" |
| 16 #include "storage/browser/quota/special_storage_policy.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 #include "webkit/browser/quota/special_storage_policy.h" | |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 static const char kWebRTCIdentityStoreDBName[] = "webrtc_identity_store"; | 21 static const char kWebRTCIdentityStoreDBName[] = "webrtc_identity_store"; |
22 | 22 |
23 static const base::FilePath::CharType kWebRTCIdentityStoreDirectory[] = | 23 static const base::FilePath::CharType kWebRTCIdentityStoreDirectory[] = |
24 FILE_PATH_LITERAL("WebRTCIdentityStore"); | 24 FILE_PATH_LITERAL("WebRTCIdentityStore"); |
25 | 25 |
26 // Initializes the identity table, returning true on success. | 26 // Initializes the identity table, returning true on success. |
27 static bool InitDB(sql::Connection* db) { | 27 static bool InitDB(sql::Connection* db) { |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 NOTREACHED(); | 595 NOTREACHED(); |
596 break; | 596 break; |
597 } | 597 } |
598 } | 598 } |
599 | 599 |
600 if (!transaction.Commit()) | 600 if (!transaction.Commit()) |
601 DVLOG(2) << "Failed to commit the transaction."; | 601 DVLOG(2) << "Failed to commit the transaction."; |
602 } | 602 } |
603 | 603 |
604 } // namespace content | 604 } // namespace content |
OLD | NEW |