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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 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 WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_
6 #define WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ 6 #define WEBKIT_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 "url/gurl.h" 12 #include "url/gurl.h"
13 #include "webkit/common/webkit_storage_common_export.h" 13 #include "storage/common/storage_export.h"
14 14
15 namespace webkit_database { 15 namespace webkit_database {
16 16
17 WEBKIT_STORAGE_COMMON_EXPORT std::string GetIdentifierFromOrigin( 17 STORAGE_EXPORT std::string GetIdentifierFromOrigin(const GURL& origin);
18 const GURL& origin); 18 STORAGE_EXPORT GURL GetOriginFromIdentifier(const std::string& identifier);
19 WEBKIT_STORAGE_COMMON_EXPORT GURL GetOriginFromIdentifier(
20 const std::string& identifier);
21 19
22 class WEBKIT_STORAGE_COMMON_EXPORT DatabaseIdentifier { 20 class STORAGE_EXPORT DatabaseIdentifier {
23 public: 21 public:
24 static const DatabaseIdentifier UniqueFileIdentifier(); 22 static const DatabaseIdentifier UniqueFileIdentifier();
25 static DatabaseIdentifier CreateFromOrigin(const GURL& origin); 23 static DatabaseIdentifier CreateFromOrigin(const GURL& origin);
26 static DatabaseIdentifier Parse(const std::string& identifier); 24 static DatabaseIdentifier Parse(const std::string& identifier);
27 ~DatabaseIdentifier(); 25 ~DatabaseIdentifier();
28 26
29 std::string ToString() const; 27 std::string ToString() const;
30 GURL ToOrigin() const; 28 GURL ToOrigin() const;
31 29
32 std::string scheme() const { return scheme_; } 30 std::string scheme() const { return scheme_; }
(...skipping 12 matching lines...) Expand all
45 std::string scheme_; 43 std::string scheme_;
46 std::string hostname_; 44 std::string hostname_;
47 int port_; 45 int port_;
48 bool is_unique_; 46 bool is_unique_;
49 bool is_file_; 47 bool is_file_;
50 }; 48 };
51 49
52 } // namespace webkit_database 50 } // namespace webkit_database
53 51
54 #endif // WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_ 52 #endif // WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_
OLDNEW
« no previous file with comments | « storage/common/database/database_connections.cc ('k') | storage/common/database/database_identifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698