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

Unified Diff: chrome/browser/browsing_data_helper.h

Issue 10805015: Move browsing_data_helper files into a separate directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chrome_frame build Created 8 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browsing_data_file_system_helper_unittest.cc ('k') | chrome/browser/browsing_data_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_helper.h
diff --git a/chrome/browser/browsing_data_helper.h b/chrome/browser/browsing_data_helper.h
deleted file mode 100644
index 81ef4fb5c22eea7456a69dfb85f735d1369b42d8..0000000000000000000000000000000000000000
--- a/chrome/browser/browsing_data_helper.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Defines methods relevant to all code that wants to work with browsing data.
-
-#ifndef CHROME_BROWSER_BROWSING_DATA_HELPER_H_
-#define CHROME_BROWSER_BROWSING_DATA_HELPER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-
-namespace WebKit {
-class WebString;
-}
-
-class ExtensionSpecialStoragePolicy;
-class GURL;
-
-class BrowsingDataHelper {
- public:
- enum OriginSetMask {
- UNPROTECTED_WEB = 1 << 0, // drive-by web.
- PROTECTED_WEB = 1 << 1, // hosted applications.
- EXTENSION = 1 << 2, // chrome-extension://*
- // Always add new items to the enum above ALL and add them to ALL.
- ALL = UNPROTECTED_WEB | PROTECTED_WEB | EXTENSION,
- };
-
- // Returns true iff the provided scheme is (really) web safe, and suitable
- // for treatment as "browsing data". This relies on the definition of web safe
- // in ChildProcessSecurityPolicy, but excluding schemes like
- // `chrome-extension`.
- static bool IsWebScheme(const std::string& scheme);
- static bool IsWebScheme(const WebKit::WebString& scheme);
- static bool HasWebScheme(const GURL& origin);
-
- // Returns true iff the provided scheme is an extension.
- static bool IsExtensionScheme(const std::string& scheme);
- static bool IsExtensionScheme(const WebKit::WebString& scheme);
- static bool HasExtensionScheme(const GURL& origin);
-
- // Returns true if the provided origin matches the provided mask.
- static bool DoesOriginMatchMask(const GURL& origin,
- int origin_set_mask,
- ExtensionSpecialStoragePolicy* policy);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(BrowsingDataHelper);
-};
-
-#endif // CHROME_BROWSER_BROWSING_DATA_HELPER_H_
« no previous file with comments | « chrome/browser/browsing_data_file_system_helper_unittest.cc ('k') | chrome/browser/browsing_data_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698