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

Side by Side Diff: chrome/browser/extensions/api/browsing_data/browsing_data_api.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 BrowsingData API functions, which entail 5 // Defines the Chrome Extensions BrowsingData 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 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" 9 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/browsing_data/browsing_data_helper.h" 15 #include "chrome/browser/browsing_data/browsing_data_helper.h"
16 #include "chrome/browser/browsing_data/browsing_data_remover.h" 16 #include "chrome/browser/browsing_data/browsing_data_remover.h"
17 #include "chrome/browser/plugins/plugin_data_remover_helper.h" 17 #include "chrome/browser/plugins/plugin_data_remover_helper.h"
18 #include "chrome/browser/plugins/plugin_prefs.h" 18 #include "chrome/browser/plugins/plugin_prefs.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/common/extensions/extension.h"
22 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
23 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
24 #include "extensions/common/error_utils.h" 23 #include "extensions/common/error_utils.h"
24 #include "extensions/common/extension.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 27
28 namespace extension_browsing_data_api_constants { 28 namespace extension_browsing_data_api_constants {
29 29
30 // Parameter name keys. 30 // Parameter name keys.
31 const char kDataRemovalPermittedKey[] = "dataRemovalPermitted"; 31 const char kDataRemovalPermittedKey[] = "dataRemovalPermitted";
32 const char kDataToRemoveKey[] = "dataToRemove"; 32 const char kDataToRemoveKey[] = "dataToRemove";
33 const char kOptionsKey[] = "options"; 33 const char kOptionsKey[] = "options";
34 34
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 return BrowsingDataRemover::REMOVE_PLUGIN_DATA; 416 return BrowsingDataRemover::REMOVE_PLUGIN_DATA;
417 } 417 }
418 418
419 int BrowsingDataRemovePasswordsFunction::GetRemovalMask() { 419 int BrowsingDataRemovePasswordsFunction::GetRemovalMask() {
420 return BrowsingDataRemover::REMOVE_PASSWORDS; 420 return BrowsingDataRemover::REMOVE_PASSWORDS;
421 } 421 }
422 422
423 int BrowsingDataRemoveWebSQLFunction::GetRemovalMask() { 423 int BrowsingDataRemoveWebSQLFunction::GetRemovalMask() {
424 return BrowsingDataRemover::REMOVE_WEBSQL; 424 return BrowsingDataRemover::REMOVE_WEBSQL;
425 } 425 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.cc ('k') | chrome/browser/extensions/api/commands/command_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698