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

Side by Side Diff: chrome/browser/extensions/extension_clear_api.h

Issue 8907018: Renaming REMOVE_LSO_DATA to REMOVE_PLUGIN_DATA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
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 // Defines the Chrome Extensions Clear API functions, which entail 5 // Defines the Chrome Extensions Clear API functions, which entail
6 // clearing browsing data, and clearing the browser's cache (which, let's be 6 // clearing browsing data, and clearing the browser's cache (which, let's be
7 // honest, are the same thing), as specified in the extension API JSON. 7 // honest, are the same thing), as specified in the extension API JSON.
8 8
9 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_ 9 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_
10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_ 10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_
(...skipping 21 matching lines...) Expand all
32 32
33 // AsyncExtensionFunction interface method. 33 // AsyncExtensionFunction interface method.
34 virtual bool RunImpl() OVERRIDE; 34 virtual bool RunImpl() OVERRIDE;
35 35
36 protected: 36 protected:
37 // Children should override this method to provide the proper removal mask 37 // Children should override this method to provide the proper removal mask
38 // based on the API call they represent. 38 // based on the API call they represent.
39 virtual int GetRemovalMask() const = 0; 39 virtual int GetRemovalMask() const = 0;
40 40
41 private: 41 private:
42 // Updates the removal bitmask according to whether removing LSO data is 42 // Updates the removal bitmask according to whether removing plugin data is
43 // supported or not. 43 // supported or not.
44 void CheckRemovingLSODataSupported(scoped_refptr<PluginPrefs> plugin_prefs); 44 void CheckRemovingPluginDataSupported(
45 scoped_refptr<PluginPrefs> plugin_prefs);
45 46
46 // Called when we're ready to start removing data. 47 // Called when we're ready to start removing data.
47 void StartRemoving(); 48 void StartRemoving();
48 49
49 BrowsingDataRemover::TimePeriod period_; 50 BrowsingDataRemover::TimePeriod period_;
50 int removal_mask_; 51 int removal_mask_;
51 }; 52 };
52 53
53 class ClearBrowsingDataFunction : public BrowsingDataExtensionFunction { 54 class ClearBrowsingDataFunction : public BrowsingDataExtensionFunction {
54 public: 55 public:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual ~ClearPasswordsFunction() {} 129 virtual ~ClearPasswordsFunction() {}
129 130
130 protected: 131 protected:
131 // BrowsingDataTypeExtensionFunction interface method. 132 // BrowsingDataTypeExtensionFunction interface method.
132 virtual int GetRemovalMask() const OVERRIDE; 133 virtual int GetRemovalMask() const OVERRIDE;
133 134
134 DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.passwords") 135 DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.passwords")
135 }; 136 };
136 137
137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_ 138 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/browser/extensions/extension_clear_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698