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

Side by Side Diff: content/browser/dom_storage/session_storage_database_adapter.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_ 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_
6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_ 6 #define CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/browser/dom_storage/dom_storage_database_adapter.h" 9 #include "content/browser/dom_storage/dom_storage_database_adapter.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class SessionStorageDatabase; 14 class SessionStorageDatabase;
15 15
16 class SessionStorageDatabaseAdapter : public DOMStorageDatabaseAdapter { 16 class SessionStorageDatabaseAdapter : public DOMStorageDatabaseAdapter {
17 public: 17 public:
18 SessionStorageDatabaseAdapter(SessionStorageDatabase* db, 18 SessionStorageDatabaseAdapter(SessionStorageDatabase* db,
19 const std::string& permanent_namespace_id, 19 const std::string& permanent_namespace_id,
20 const GURL& origin); 20 const GURL& origin);
21 virtual ~SessionStorageDatabaseAdapter(); 21 ~SessionStorageDatabaseAdapter() override;
22 virtual void ReadAllValues(DOMStorageValuesMap* result) override; 22 void ReadAllValues(DOMStorageValuesMap* result) override;
23 virtual bool CommitChanges(bool clear_all_first, 23 bool CommitChanges(bool clear_all_first,
24 const DOMStorageValuesMap& changes) override; 24 const DOMStorageValuesMap& changes) override;
25
25 private: 26 private:
26 scoped_refptr<SessionStorageDatabase> db_; 27 scoped_refptr<SessionStorageDatabase> db_;
27 std::string permanent_namespace_id_; 28 std::string permanent_namespace_id_;
28 GURL origin_; 29 GURL origin_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(SessionStorageDatabaseAdapter); 31 DISALLOW_COPY_AND_ASSIGN(SessionStorageDatabaseAdapter);
31 }; 32 };
32 33
33 } // namespace content 34 } // namespace content
34 35
35 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_ 36 #endif // CONTENT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698