| 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 #ifndef WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ | 5 #ifndef STORAGE_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ |
| 6 #define WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ | 6 #define STORAGE_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 12 #include "storage/common/storage_common_export.h" |
| 12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 13 #include "webkit/common/storage_common_export.h" | |
| 14 | 14 |
| 15 namespace storage { | 15 namespace storage { |
| 16 | 16 |
| 17 STORAGE_COMMON_EXPORT std::string GetIdentifierFromOrigin( | 17 STORAGE_COMMON_EXPORT std::string GetIdentifierFromOrigin( |
| 18 const GURL& origin); | 18 const GURL& origin); |
| 19 STORAGE_COMMON_EXPORT GURL GetOriginFromIdentifier( | 19 STORAGE_COMMON_EXPORT GURL GetOriginFromIdentifier( |
| 20 const std::string& identifier); | 20 const std::string& identifier); |
| 21 | 21 |
| 22 class STORAGE_COMMON_EXPORT DatabaseIdentifier { | 22 class STORAGE_COMMON_EXPORT DatabaseIdentifier { |
| 23 public: | 23 public: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 std::string scheme_; | 45 std::string scheme_; |
| 46 std::string hostname_; | 46 std::string hostname_; |
| 47 int port_; | 47 int port_; |
| 48 bool is_unique_; | 48 bool is_unique_; |
| 49 bool is_file_; | 49 bool is_file_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace storage | 52 } // namespace storage |
| 53 | 53 |
| 54 #endif // WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ | 54 #endif // STORAGE_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ |
| OLD | NEW |