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

Side by Side Diff: chrome/browser/webdata/token_service_table.h

Issue 8614003: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/webdata/logins_table.h ('k') | chrome/browser/webdata/web_apps_table.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_
6 #define CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_ 6 #define CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h"
12 #include "chrome/browser/webdata/web_database_table.h" 13 #include "chrome/browser/webdata/web_database_table.h"
13 14
14 class TokenServiceTable : public WebDatabaseTable { 15 class TokenServiceTable : public WebDatabaseTable {
15 public: 16 public:
16 TokenServiceTable(sql::Connection* db, sql::MetaTable* meta_table) 17 TokenServiceTable(sql::Connection* db, sql::MetaTable* meta_table)
17 : WebDatabaseTable(db, meta_table) {} 18 : WebDatabaseTable(db, meta_table) {}
18 virtual ~TokenServiceTable() {} 19 virtual ~TokenServiceTable() {}
19 virtual bool Init(); 20 virtual bool Init() OVERRIDE;
20 virtual bool IsSyncable(); 21 virtual bool IsSyncable() OVERRIDE;
21 22
22 // Remove all tokens previously set with SetTokenForService. 23 // Remove all tokens previously set with SetTokenForService.
23 bool RemoveAllTokens(); 24 bool RemoveAllTokens();
24 25
25 // Retrieves all tokens previously set with SetTokenForService. 26 // Retrieves all tokens previously set with SetTokenForService.
26 // Returns true if there were tokens and we decrypted them, 27 // Returns true if there were tokens and we decrypted them,
27 // false if there was a failure somehow 28 // false if there was a failure somehow
28 bool GetAllTokens(std::map<std::string, std::string>* tokens); 29 bool GetAllTokens(std::map<std::string, std::string>* tokens);
29 30
30 // Store a token in the token_service table. Stored encrypted. May cause 31 // Store a token in the token_service table. Stored encrypted. May cause
31 // a mac keychain popup. 32 // a mac keychain popup.
32 // True if we encrypted a token and stored it, false otherwise. 33 // True if we encrypted a token and stored it, false otherwise.
33 bool SetTokenForService(const std::string& service, 34 bool SetTokenForService(const std::string& service,
34 const std::string& token); 35 const std::string& token);
35 36
36 private: 37 private:
37 DISALLOW_COPY_AND_ASSIGN(TokenServiceTable); 38 DISALLOW_COPY_AND_ASSIGN(TokenServiceTable);
38 }; 39 };
39 40
40 #endif // CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_ 41 #endif // CHROME_BROWSER_WEBDATA_TOKEN_SERVICE_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/logins_table.h ('k') | chrome/browser/webdata/web_apps_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698