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

Side by Side Diff: webkit/quota/mock_special_storage_policy.h

Issue 8539047: Add OVERRIDE to webkit/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 | « webkit/plugins/npapi/webplugin_impl.h ('k') | webkit/support/simple_database_system.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 WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ 5 #ifndef WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_
6 #define WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ 6 #define WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10
10 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
11 #include "webkit/quota/special_storage_policy.h" 12 #include "webkit/quota/special_storage_policy.h"
12 13
13 namespace quota { 14 namespace quota {
14 15
15 class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy { 16 class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy {
16 public: 17 public:
17 MockSpecialStoragePolicy(); 18 MockSpecialStoragePolicy();
18 virtual ~MockSpecialStoragePolicy(); 19 virtual ~MockSpecialStoragePolicy();
19 20
20 virtual bool IsStorageProtected(const GURL& origin); 21 virtual bool IsStorageProtected(const GURL& origin) OVERRIDE;
21 virtual bool IsStorageUnlimited(const GURL& origin); 22 virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE;
22 virtual bool IsStorageSessionOnly(const GURL& origin); 23 virtual bool IsStorageSessionOnly(const GURL& origin) OVERRIDE;
23 virtual bool IsFileHandler(const std::string& extension_id); 24 virtual bool IsFileHandler(const std::string& extension_id) OVERRIDE;
24 virtual bool HasSessionOnlyOrigins(); 25 virtual bool HasSessionOnlyOrigins() OVERRIDE;
25 26
26 void AddProtected(const GURL& origin) { 27 void AddProtected(const GURL& origin) {
27 protected_.insert(origin); 28 protected_.insert(origin);
28 } 29 }
29 30
30 void AddUnlimited(const GURL& origin) { 31 void AddUnlimited(const GURL& origin) {
31 unlimited_.insert(origin); 32 unlimited_.insert(origin);
32 } 33 }
33 34
34 void AddSessionOnly(const GURL& origin) { 35 void AddSessionOnly(const GURL& origin) {
(...skipping 24 matching lines...) Expand all
59 std::set<GURL> protected_; 60 std::set<GURL> protected_;
60 std::set<GURL> unlimited_; 61 std::set<GURL> unlimited_;
61 std::set<GURL> session_only_; 62 std::set<GURL> session_only_;
62 std::set<std::string> file_handlers_; 63 std::set<std::string> file_handlers_;
63 64
64 bool all_unlimited_; 65 bool all_unlimited_;
65 }; 66 };
66 } // namespace quota 67 } // namespace quota
67 68
68 #endif // WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ 69 #endif // WEBKIT_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.h ('k') | webkit/support/simple_database_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698