diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-27 03:22:45 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-27 03:22:45 +0000 |
commit | 41f1bf2c9c0009951467823409446c2644bfde98 (patch) | |
tree | 8906c4cb720a8dfa275d0177a8a9fe619a68a9c6 /chrome/browser/browsing_data_database_helper.h | |
parent | 82f88c5fbe2bfed02de4de0fb1a2ea98942c4e0e (diff) | |
download | chromium_src-41f1bf2c9c0009951467823409446c2644bfde98.zip chromium_src-41f1bf2c9c0009951467823409446c2644bfde98.tar.gz chromium_src-41f1bf2c9c0009951467823409446c2644bfde98.tar.bz2 |
Clearly identify extension and file:// resources in the cookie tree view.
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/660236
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_database_helper.h')
-rw-r--r-- | chrome/browser/browsing_data_database_helper.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_database_helper.h b/chrome/browser/browsing_data_database_helper.h index 2fa936b..cacba8b 100644 --- a/chrome/browser/browsing_data_database_helper.h +++ b/chrome/browser/browsing_data_database_helper.h @@ -10,6 +10,7 @@ #include "base/callback.h" #include "base/scoped_ptr.h" +#include "chrome/common/url_constants.h" #include "webkit/database/database_tracker.h" class Profile; @@ -41,6 +42,18 @@ class BrowsingDataDatabaseHelper last_modified(last_modified) { } + bool IsExtensionSchemeData() { + return StartsWithASCII(origin_identifier, + std::string(chrome::kExtensionScheme), + true); + } + + bool IsFileSchemeData() { + return StartsWithASCII(origin_identifier, + std::string(chrome::kFileScheme), + true); + } + std::string host; std::string database_name; std::string origin_identifier; |