Add a webstorePrivate API to show a permission prompt for delegated bundle installs
[chromium-blink-merge.git] / chrome / browser / extensions / data_deleter.h
blob459b850262b6f28f9a315a7da3a560425841fd21
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
6 #define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
8 #include <string>
9 #include "base/basictypes.h"
10 #include "base/callback_forward.h"
12 class Profile;
14 namespace extensions {
16 class Extension;
18 class DataDeleter {
19 public:
20 // Starts removing data. The extension should not be running when this is
21 // called. Cookies are deleted on the current thread, local storage and
22 // databases/settings are deleted asynchronously on the webkit and file
23 // threads, respectively. This function must be called from the UI thread.
25 // |callback| is called when data deletion is done or at least the deletion
26 // is scheduled.
27 static void StartDeleting(Profile* profile,
28 const Extension* extenion,
29 const base::Closure& callback);
31 DISALLOW_COPY_AND_ASSIGN(DataDeleter);
34 } // namespace extensions
36 #endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_