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

Unified Diff: components/signin/core/webdata/token_service_table.h

Issue 129253003: Revert of Create signin component and componentize TokenWebData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « components/signin/README ('k') | components/signin/core/webdata/token_service_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/webdata/token_service_table.h
diff --git a/components/signin/core/webdata/token_service_table.h b/components/signin/core/webdata/token_service_table.h
deleted file mode 100644
index 9b873c86343a98db6a5b0b0a3e84f29fef63af27..0000000000000000000000000000000000000000
--- a/components/signin/core/webdata/token_service_table.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 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 COMPONENTS_SIGNIN_CORE_WEBDATA_TOKEN_SERVICE_TABLE_H_
-#define COMPONENTS_SIGNIN_CORE_WEBDATA_TOKEN_SERVICE_TABLE_H_
-
-#include <map>
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "components/webdata/common/web_database_table.h"
-
-class WebDatabase;
-
-class TokenServiceTable : public WebDatabaseTable {
- public:
- TokenServiceTable() {}
- virtual ~TokenServiceTable() {}
-
- // Retrieves the TokenServiceTable* owned by |database|.
- static TokenServiceTable* FromWebDatabase(WebDatabase* db);
-
- virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE;
- virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
- virtual bool IsSyncable() OVERRIDE;
- virtual bool MigrateToVersion(int version,
- bool* update_compatible_version) OVERRIDE;
-
- // Remove all tokens previously set with SetTokenForService.
- bool RemoveAllTokens();
-
- // Removes a token related to the service from the token_service table.
- bool RemoveTokenForService(const std::string& service);
-
- // Retrieves all tokens previously set with SetTokenForService.
- // Returns true if there were tokens and we decrypted them,
- // false if there was a failure somehow
- bool GetAllTokens(std::map<std::string, std::string>* tokens);
-
- // Store a token in the token_service table. Stored encrypted. May cause
- // a mac keychain popup.
- // True if we encrypted a token and stored it, false otherwise.
- bool SetTokenForService(const std::string& service,
- const std::string& token);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TokenServiceTable);
-};
-
-#endif // COMPONENTS_SIGNIN_CORE_WEBDATA_TOKEN_SERVICE_TABLE_H_
« no previous file with comments | « components/signin/README ('k') | components/signin/core/webdata/token_service_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698