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

Unified Diff: webkit/common/database/database_identifier.h

Issue 524983002: Move fileapi-related files from webkit/common/ to storage/common/ and set up redirect headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/common/database/database_connections.cc ('k') | webkit/common/database/database_identifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/database/database_identifier.h
diff --git a/webkit/common/database/database_identifier.h b/webkit/common/database/database_identifier.h
index b72c02b8928b9f406512efcadb15babded00f93d..38e27772178e6e545bda4d3bb1a91f97dc28f996 100644
--- a/webkit/common/database/database_identifier.h
+++ b/webkit/common/database/database_identifier.h
@@ -1,54 +1,5 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_
-#define WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/strings/string_piece.h"
-#include "url/gurl.h"
-#include "webkit/common/storage_common_export.h"
-
-namespace storage {
-
-STORAGE_COMMON_EXPORT std::string GetIdentifierFromOrigin(
- const GURL& origin);
-STORAGE_COMMON_EXPORT GURL GetOriginFromIdentifier(
- const std::string& identifier);
-
-class STORAGE_COMMON_EXPORT DatabaseIdentifier {
- public:
- static const DatabaseIdentifier UniqueFileIdentifier();
- static DatabaseIdentifier CreateFromOrigin(const GURL& origin);
- static DatabaseIdentifier Parse(const std::string& identifier);
- ~DatabaseIdentifier();
-
- std::string ToString() const;
- GURL ToOrigin() const;
-
- std::string scheme() const { return scheme_; }
- std::string hostname() const { return hostname_; }
- int port() const { return port_; }
- bool is_unique() const { return is_unique_; }
-
- private:
- DatabaseIdentifier();
- DatabaseIdentifier(const std::string& scheme,
- const std::string& hostname,
- int port,
- bool is_unique,
- bool is_file);
-
- std::string scheme_;
- std::string hostname_;
- int port_;
- bool is_unique_;
- bool is_file_;
-};
-
-} // namespace storage
-
-#endif // WEBKIT_COMMON_DATABASE_DATABASE_IDENTIFIER_H_
+#include "storage/common/database/database_identifier.h"
« no previous file with comments | « webkit/common/database/database_connections.cc ('k') | webkit/common/database/database_identifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698